> How do u write solr query to mention
> proximity between two phrases 
> 
> dance jockey should appear within 10 words before video
> jokey 
> 
> "("dance jockey") ("video jockey")"~10 
> 
> This isn't working fine . can some one suggest a way ?

This is not possible with out-of-the-box solr, though this kind of searches are 
possible with lucene's SpanQuery family.

It should be possible with Xml and Surround query parsers.
http://www.lucidimagination.com/blog/2009/02/22/exploring-query-parsers/

Here is  an effort to integrate xml query parser to solr, 
https://issues.apache.org/jira/browse/SOLR-839

Reply via email to