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 David Philip <da...@gmail.com> on 2014/11/13 17:41:13 UTC

Edismax Phrase Search

Hi All,

   How to do a phrase search and then term proximity search using edismax
query parser?
For ex: If the search term is "red apples", the products having "red
apples" in their fields should be returned first and then products having
red apples with term proximity of n.

Thanks.
David

Re: Edismax Phrase Search

Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi David,

pf pf2 pf3 parameters are invented exactly for your use case.
It automatically creates artificial clauses to boost documents you describe.

https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser

Ahmet



On Thursday, November 13, 2014 6:43 PM, David Philip <da...@gmail.com> wrote:
Hi All,

   How to do a phrase search and then term proximity search using edismax
query parser?
For ex: If the search term is "red apples", the products having "red
apples" in their fields should be returned first and then products having
red apples with term proximity of n.

Thanks.
David