My problem is that Solr doesn't seem to be returning good results when I search for a multiple word phrase.
The following search return no results.
However, when I search for roof or fixing, they both return a few good results.
On the query for "roof fixing", I expect solr to return 7 results. The 4 records for roof and 3 records for fixing.
Is any special configuration necessary for that to happen?
Solr won't necessarily return 7 results for "roof OR fixing" as one result could include both "roof" and "fixing". Suppose "roof" has 3 results, "fixing" has 4, but both "roof" and "fixing" appear in 2 results. You will get only 5 results on a search for "roof OR fixing" as Solr will not return duplicate results.
Have you tried using a url-encoded space ("%20") instead of the "+" sign? If the default operator is OR you should not need to include that operator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With