I\'m using Solr with Magento Enterprise. I\'m trying to change the default search operator from OR
to AND
to make searches more specific by default.
To answer my own question, I ended up overriding the Enterprise_Search_Model_Adapter_HttpStream
model to inject AND
s into the search query. I added the prepareSearchConditions()
method from Enterprise_Search_Model_Adapter_Solr_Abstract
:
It doesn't play nice with other operators obviously but in my case it's good enough™ (at least for now). I'm still hoping to find a better solution though.