lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: how to put multiplue proximity search in lucene??
Date Thu, 26 Jul 2012 14:37:13 GMT
>  fear2dark tight3free is one single
> query and im using query parser. If i
> will pass
>   "fear dark"~2 "tight free"~3  then i will not
> get result in which dark
> and tight near to eachother. 

So you want to be dark and tight adjacent to each other. SurroundQueryParser support nested
proximity search.
It has operators for both unordered and ordered query.
Your query would be something like this:
(fear 2w dark) w (tight 3w free)


http://wiki.apache.org/solr/SurroundQueryParser
http://www.lucidimagination.com/blog/2009/02/22/exploring-query-parsers/
http://lucene.apache.org/core/3_6_1/api/all/org/apache/lucene/queryParser/surround/parser/package-summary.html

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