pantheon-systems / solr-power

A WordPress plugin to connect to Pantheon's Apache Solr search infrastructure, or your own!
https://wordpress.org/plugins/solr-power/
GNU General Public License v2.0
126 stars 60 forks source link

Added option to disable setQueryAlternative #495

Closed jimkeller closed 3 years ago

jimkeller commented 3 years ago

In response to https://github.com/pantheon-systems/solr-power/issues/371 , this pull request allows you to define a constant SOLRPOWER_DISABLE_QUERY_ALT in order to work around the problem of setQueryAlternative() and the 'post title hack' causing problems with boosting.

danielbachhuber commented 3 years ago

Thanks for the pull request, @jimkeller !

I'm perfectly fine with this approach. I'll clean up the coding standards and tag a release momentarily.