Hi,
We have an index with 3 documents, each document contains a single field let's 
call it 'text' (except the id) as below:

*         Doc1

o   text:home garden sky sea wolf

*         Doc2

o   text:home wolf sea garden sky

*         Doc3

o   text:wolf sea home garden sky

When executing the query: home garden apple,
Using eDismax params:

*         pf=text

*         ps=1

*         mm=2
We would like to get Doc1 and Doc3, in other words all the documents having at 
least 2 terms in close proximity (only 1 term off).

The problem is that we get all 3 documents, it looks like the 'ps' parameter 
doesn't count.
Why Doc2 included in the results?  We expected that Solr will emit it since the 
'ps' is larger than 1 => we have home wolf sea garden (ps=2?)



Tomer Levi

Software Engineer
Big Data Group

Product & Technology Unit

(T) +972 (9) 775-2693



tomer.l...@nice.com<mailto:tomer.l...@nice.com>

www.nice.com<http://www.nice.com/>

[cid:image001.png@01CFDB18.EF9E9800]<http://twitter.com/NICE_Systems/>[cid:image002.png@01CFDB18.EF9E9800]<http://www.facebook.com/pages/NICE-Systems/149072782602/>[cid:image003.png@01CFDB18.EF9E9800]<http://www.linkedin.com/company/nice-systems>[cid:image004.png@01CFDB18.EF9E9800]<http://www.nice.com/blog>




[cid:image005.jpg@01CFDB18.EF9E9800]<http://www.nice.com/big-data-solutions>



Reply via email to