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

Reply via email to