You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jame Vaalet <jv...@capitaliq.com> on 2011/07/26 11:58:21 UTC
proximity within phrases
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 ?
-JAME
Re: proximity within phrases
Posted by Ahmet Arslan <io...@yahoo.com>.
> 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