I have created an index with the default stop words. When I search for an exact phrase with stop words, I do not get any results back.
For example, say the phrase I am looking for is “The information contained in these materials”. When I search for the exact phrase (using double quotes), I get no results back. So I tried a few more things - I tried removing the stop words and using regex to come up with a query like “information contained”&materials This time it found matches but it also found results for documents where the “information contained” phrase was found and then somewhere else in the document it found the word materials. I also tried to search for the phrase without any stop words at all like “information contained materials” but that yielded no results.
I would like to keep the default stop words so that the index doesn’t grow huge and the performance is
not affected by having to index those stop words. Is there any way to handle this situation? Basically we want to keep the stop words but also let the user search for a phrase as a whole.