lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: how to put multiplue proximity search in lucene??
Date Wed, 25 Jul 2012 08:52:19 GMT
If you are using QueryParser use "fear dark"~2 "tight free"~3.

See also PhraseQuery.setSlop(n).  You could also look at the Span
queries e.g. SpanNearQuery.


--
Ian.


On Wed, Jul 25, 2012 at 6:13 AM, neerajshah84 <neerajshah84@gmail.com> wrote:
> how can i put multiplue proximity search in lucene??
>  example :-
>
> i want to search like "fear,dark" in two words and dark adjucent to "tight"
> and tight,free in 3 words.
>
> Query :-   fear2dark tight3free
>
> how can i do this in lucene??
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/how-to-put-multiplue-proximity-search-in-lucene-tp3997139.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
>

---------------------------------------------------------------------
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