Hi Ariya,
I think Hossman specified you that the slop 1 is fine in your use case :)
Of course in the case using span queries was what you were expecting !

Cheers

2015-06-16 10:13 GMT+01:00 ariya bala <ariya...@gmail.com>:

> Ok. Thank you Chris.
> It is a custom Query parser.
> I will check my Query parser on where it inject the slop 1.
>
> On Tue, Jun 16, 2015 at 3:26 AM, Chris Hostetter <hossman_luc...@fucit.org
> >
> wrote:
>
> >
> > : I encounter this peculiar case with solr 4.10.2 where the parsed query
> > : doesnt seem to be logical.
> > :
> > : PHRASE23("reduce workforce") ==>
> > : SpanNearQuery(spanNear([spanNear([Contents:reduceƤ,
> > : Contents:workforceƤ], 1, true)], 23, true))
> >
> > 1) that does not appear to be a parser syntax of any parser that comes
> > with Solr (that i know of) so it's possible that whatever custom parser
> > you are using has a bug in it.
> >
> > 2) IIRC, with span queries (which unlike PhraseQueries explicitly support
> > both in-order, and out of order nearness) a slop of "0" is going to
> > require that the 2 spans "overlap" and occupy the exact same position --
> a
> > span of 1 means that they differ by a single position.
> >
> >
> >
> > -Hoss
> > http://www.lucidworks.com/
>
>
>
>
> --
> *Ariya *
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to