I tried the autoRelax future, 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 documents found with all
phrases, I want best possible result. Let's say a document with +A +C +F
(max number of phrases found in a document).

On Tue, Feb 28, 2017 at 12:37 PM, Nilesh Kamani <[email protected]>
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 which
> contains all three phrases, it should return the least +A +B or +A +C.
> Could you please tell me which classes will I need to modify for this ?
>
>
> Thanks,
> Nilesh Kamani
>

Reply via email to