Re: mm is not working if you have same term multiple times in query

2017-10-05 Thread Chris Hostetter
: I'm using Solr 6.6.0 i have set mm as 100% but when i have the repeated : search term then mm param is not honoured : I have 2 docs in index : Doc1- : name=lock : Doc 2- : name=lock lock : : Now when i'm quering the solr with query : *http://localhost:8983/solr/test2/select?defType=dismax&qf=

Re: mm is not working if you have same term multiple times in query

2017-09-22 Thread Aman Deep Singh
We can't use shingles as user can query lock and lock ,or any other combination although and and some other words can be passed in stop word processing but can't rely on that completely. On 22-Sep-2017 7:00 PM, "Emir Arnautović" wrote: It seems to me that all OOTB solution would include some que

Re: mm is not working if you have same term multiple times in query

2017-09-22 Thread Emir Arnautović
It seems to me that all OOTB solution would include some query parsing on client side. If those are adjacent values, you could try play with shingles to get it to work. Brainstorming: custom token filter that would assign token occurrence number to each token: e.g. “foo lock bar lock” would be

Re: mm is not working if you have same term multiple times in query

2017-09-22 Thread Aman Deep Singh
Hi Emir, Thanks for the reply, I understand how the dismax/edismax works ,my problem is I don't want to show the results with one token only , I cannot use phrase query here because the phrase query doesn't work with single word query so to do so we need to change the search request (qf or pf )dyna

Re: mm is not working if you have same term multiple times in query

2017-09-22 Thread Emir Arnautović
Hi Aman, You have wrong expectations: Edismax does respect mm, it’s just that it is met. If you take a look at parsed query, it’ll be something like: +(((name:lock) (name:lock))~2) And from dismax perspective it found both terms. It will not start searching for the next term after first is found