lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Mayer (JIRA)" <>
Subject [jira] Commented: (SOLR-2058) Adds optional "phrase slop" to edismax "pf2", "pf3" and "pf" parameters with field~slop^boost syntax
Date Mon, 30 Aug 2010 21:34:54 GMT


Ron Mayer commented on SOLR-2058:

Also wanted to note - I've been using this on a QA machine with 4 million documents, and it
 has been working extremely well for me; with multiple simultaneous phrase slop.

In particular, if I use:
    * a high boost (500)  on pf with slop of 0
    * a moderate boost (50) on pf with a slop of 50
    * a moderate boost (50) on pf2 with a slop of 0
    * a low boost (10) on pf2 with a slop of 10

it's doing a *great* job of getting the most relevant document  in the #1 spot, and a very
good job at getting the entire first page of results filled with highly relevant documents.

> Adds optional "phrase slop" to edismax "pf2", "pf3" and "pf" parameters with field~slop^boost
> ----------------------------------------------------------------------------------------------------
>                 Key: SOLR-2058
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: SearchComponents - other
>    Affects Versions: 3.1, 4.0
>         Environment: n/a
>            Reporter: Ron Mayer
>            Priority: Minor
>         Attachments: pf2_with_slop.patch
> {quote}
> From	Ron Mayer <>
> ... my results might  be even better if I had a couple different "pf2"s with different
"ps"'s  at the same time.   In particular.   One with ps=0 to put a high boost on ones the
have  the right ordering of words.  For example insuring that [the query]:
>   "red hat black jacket"
>  boosts only documents with "red hats" and not "black hats".   And another pf2 with a
more modest boost with ps=5 or so to handle the query above also boosting docs with 
>   "red baseball hat".
> {quote}
> []
> {quote}
> From	Yonik Seeley <>
> Perhaps fold it into the pf/pf2 syntax?
> pf=text^2    // current syntax... makes phrases with a boost of 2
> pf=text~1^2  // proposed syntax... makes phrases with a slop of 1 and
> a boost of 2
> That actually seems pretty natural given the lucene query syntax - an
> actual boosted sloppy phrase query already looks like
> {{text:"foo bar"~1^2}}
> -Yonik
> {quote}
> []
> {quote}
> From	Chris Hostetter <>
> Big +1 to this idea ... the existing "ps" param can stick arround as the 
> default for any field that doesn't specify it's own slop in the pf/pf2/pf3 
> fields using the "~" syntax.
> -Hoss
> {quote}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message