Re: Need to modify boolean AND search

2017-02-28 Thread Rick Leir
Hi Nilesh You may want to play with the mm parameter for edismax. This parameter determines how many of your terms need to match. I say play, because it is hard to learn this from the documentation. I did a bit of experimentation to discover all the details of this. Cheers--Rick On February 28

Re: Need to modify boolean AND search

2017-02-28 Thread Nilesh Kamani
Sure. If I do OR query, does Solr provide number of phrases matched in each document ? E.g. if I search for A B C, if two documents are returned. Can Solr provide result like this ? Doc1 - A, B Doc2 - B,C Thanks, On Tue, Feb 28, 2017 at 2:56 PM, Walter Underwood wrote: > I strongly recommend u

Re: Need to modify boolean AND search

2017-02-28 Thread Walter Underwood
I strongly recommend using OR instead of AND. Misspellings are in about 10% of queries. Those tend to get zero results for many variations of AND or mostly-AND. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Feb 28, 2017, at 11:54 AM, Nilesh Kaman

Re: Need to modify boolean AND search

2017-02-28 Thread Nilesh Kamani
I tried, but it does not serve the purpose. The autoRelax is applied when words are removed from query field due to stopwords, etc So it is applied before the results are fetched. In my case, if no results are found, I want best possible results. So if I search for +A +B +C +D +E +F... +Z) and no d

Re: Need to modify boolean AND search

2017-02-28 Thread Alexandre Rafalovitch
Under eDismax there is a parameter called relax something Try that first. Regards, Alex On 28 Feb 2017 12:34 PM, "Nilesh Kamani" wrote: > Hello All, > > I want to modify a boolean AND search. > Just to give an example. > If somebody searches for +A +B +C, but if there is no document whi