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 61 forks source link

[CMSP-486] Add is_solr_query filter #588

Open sboisvert opened 1 year ago

sboisvert commented 1 year ago

Right now it's impossible to turn off Solr for specific types of searches.

Another considered solution was to allow for $query->get( 'solr_integrate' ); to be set to false and have that overwrite the result of $query->is_search() but the filter seems like it would give more flexibility and be clearer in it's goal.

rwagner00 commented 1 year ago

I created a ticket to look at this internally, thank you for the PR!

jazzsequence commented 1 year ago

I love this. +100 to more filters. @rwagner00 can you update this with the Jira # and/or update the title.

rwagner00 commented 1 year ago

@jazzsequence The ticket is: CMSP-486

PatelUtkarsh commented 6 months ago

I'd also love to have some control using this filter to exclude specific rest api requests.