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

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