phrase slop is about proximity search.

http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#Proximity%20Searches

ps (Phrase Slop) affects boosting, if you play with ps value, numFound and 
result set do not change. But the order of result set change. This is about the 
phrase query that is constructed out of the entire "q" param.

qs (Query Phrase Slop) affects matching. If you play with qs, numFound changes. 
This parameter is about when you have explicit phrase query in your raw query. 
i.e. &q="apache lucene"

--- On Thu, 10/7/10, David Boxenhorn <[email protected]> wrote:

> From: David Boxenhorn <[email protected]>
> Subject: Re: Query slop vs. phrase slop
> To: [email protected]
> Date: Thursday, October 7, 2010, 11:34 AM
> Does anybody know the answer to
> this?
> 
> On Tue, Oct 5, 2010 at 7:19 PM, David Boxenhorn <[email protected]>
> wrote:
> 
> > Thank you. I am talking about dismax's parameters.
> >
> > This is how I understand things, please tell me where
> I'm wrong:
> >
> > Query slop (qs) = how many words you can move the
> query to match the text.
> > Phrase slop (ps) (when used in conjunction with
> &pf=text - is there another
> > possibility?) = how many words you can move the text
> to match the query.
> >
> > How are those two different in terms of the results
> they produce?
> >
> > On Tue, Oct 5, 2010 at 7:08 PM, Ahmet Arslan <[email protected]>
> wrote:
> >
> >> > Can anyone explain to me the
> >> > practical difference (i.e. in terms of
> results)
> >> > between query slop and phrase slop?
> >>
> >> I think you are asking about dismax's parameters,
> right?
> >>
> >> ps (Phrase Slop) is about pf parameter.
> >>
> >> qs (Query Phrase Slop) : You cannot use tilde
> operator with dismax, so
> >> this parameter is used instead.
> >>
> >> luceneQParser : "term1 term2"~3 => dismaxQParer
> : q="term1 term2"&qs=3
> >>
> >>
> >>
> >>
> >
> 


      

Reply via email to