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.m...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to