lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: [PhraseQuery] Can "jakarta apache"~10 be searched by offset ?
Date Tue, 07 May 2013 05:09:50 GMT
Do you mean the raw character offsets of the starting and ending characters 
of the terms?

No.

Although, if you index the text as a raw string, you might be able to come 
up with a regex query like "jakarta.{1,10}apache"

-- Jack Krupansky

-----Original Message----- 
From: wgggfiy
Sent: Monday, May 06, 2013 11:39 PM
To: java-user@lucene.apache.org
Subject: [PhraseQuery] Can "jakarta apache"~10 be searched by offset ?

As I know, the syntax *"jakarta apache"~10*, which is a PhraseQuery with a
slop=10 in position, but What I want is *based on offset* not on position?
Anyone can help me ? thx.



-----
--------------------------
Email: wuqiu.main@qq.com
--------------------------
--
View this message in context: 
http://lucene.472066.n3.nabble.com/PhraseQuery-Can-jakarta-apache-10-be-searched-by-offset-tp4061243.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com. 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message