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 abhi Abhishek <ab...@gmail.com> on 2017/06/12 07:22:12 UTC

Proximity Search using edismax parser.

Hi All,
      How does proximity Query work in SOLR.

Example if i am running a query like below, for the field containing the
text “India registered a historical test match win against the arch rival
Pakistan here in Lords, England on Sunday”

Query: “Test match India Pakistan” ~ 10

                I am interested in understanding the intermediate steps
involved here to understand the search behavior and determine how results
are being matched to the search phrase.

Thanks in Advance,

Abhishek

Re: Proximity Search using edismax parser.

Posted by vrindavda <vr...@gmail.com>.
hi you can refer : http://yonik.com/solr/query-syntax/



--
View this message in context: http://lucene.472066.n3.nabble.com/Proximity-Search-using-edismax-parser-tp4340115p4340133.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Proximity Search using edismax parser.

Posted by abhi Abhishek <ab...@gmail.com>.
Thanks for the suggestions Erik and Vrindavda,

i was trying to understand how does the above query work when we have slop
set to 10. the debug output of the SOLR Query gave the terms which were
being looked up but the transpositions done to look up the search wasn't
exposed.

i found following stack overflow link which describes the transpositions
done when one is looking for phrase with slop 4. is there a guide to
understand this?

https://stackoverflow.com/questions/25558195/lucene-proximity-search-for-phrase-with-more-than-two-words

Thanks in advance.

Best Regards,
Abhishek


On Mon, Jun 12, 2017 at 5:41 PM, Erik Hatcher <er...@gmail.com>
wrote:

> Adding &debug=true to your search requests will give you the parsing
> details, so you can see how edismax interprets the query string and
> parameters to turn it into the underlying dismax and phrase queries.
>
>         Erik
>
> > On Jun 12, 2017, at 3:22 AM, abhi Abhishek <ab...@gmail.com> wrote:
> >
> > Hi All,
> >      How does proximity Query work in SOLR.
> >
> > Example if i am running a query like below, for the field containing the
> > text “India registered a historical test match win against the arch rival
> > Pakistan here in Lords, England on Sunday”
> >
> > Query: “Test match India Pakistan” ~ 10
> >
> >                I am interested in understanding the intermediate steps
> > involved here to understand the search behavior and determine how results
> > are being matched to the search phrase.
> >
> > Thanks in Advance,
> >
> > Abhishek
>
>

Re: Proximity Search using edismax parser.

Posted by Erik Hatcher <er...@gmail.com>.
Adding &debug=true to your search requests will give you the parsing details, so you can see how edismax interprets the query string and parameters to turn it into the underlying dismax and phrase queries.

	Erik

> On Jun 12, 2017, at 3:22 AM, abhi Abhishek <ab...@gmail.com> wrote:
> 
> Hi All,
>      How does proximity Query work in SOLR.
> 
> Example if i am running a query like below, for the field containing the
> text “India registered a historical test match win against the arch rival
> Pakistan here in Lords, England on Sunday”
> 
> Query: “Test match India Pakistan” ~ 10
> 
>                I am interested in understanding the intermediate steps
> involved here to understand the search behavior and determine how results
> are being matched to the search phrase.
> 
> Thanks in Advance,
> 
> Abhishek