Hi:

 

There seems to be an error in the documentation about the slop parameter ps
used by the eDisMax parser. It reads:

 

 

"This means that if the terms "foo" and "bar" appear in the document with
less than 10 terms between each

other, the phrase will match."

 

 

Counterexample:

"Foo one two three four five fix seven eight nine bar" will not match with
ps=10

 

It seems that it must be "less than 9".

 

 

However, when more query terms are used it gets complicated when one tries
to count words in between.

 

 

Easier to understand (and correct according to my testing) would be
something like:

 

"This means that if the terms "foo" and "bar" appear in the document within
a group of 10 or less terms, the phrase will match. For example the doc that
says:

*Foo* term1 term2 term3 *bar*

will match the phrase query. A document that says

*Foo* term1 term2 term3 term4 term5 term6 term7 term8 term9 *bar* 

will not (because the search terms are within a group of 11 terms).

Note: If any search term is a MUST-NOT term, the phrase slop query will
never match.

"

 

 

Anybody willing to review and change to documentation?

 

Thanks,

James

 

 

Reply via email to