When executing a search, a method for altering the specific Solr query is currently missing. This should be introduced with a new search_api_solr_query alter hook.

Comments

drunken monkey’s picture

Title: Add hook_search_api_solr_query_alter() invocation » Add Solr-specific query alter hooks
Status: Active » Fixed

Added two hooks:
- hook_search_api_solr_query_alter() for altering normal search queries.
- hook_search_api_solr_multi_query_alter() for altering multi-index queries.

The code is rather ugly, but hopefully it won't be much longer until a better Solr library for PHP becomes available.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mgifford’s picture

@drunken monkey Not sure if your concerns for the PHP library have been addressed by more recent versions if the Solr PHP library, but both of these have come out since your comment in 2010.

http://code.google.com/p/solr-php-client/downloads/list
http://pecl.php.net/package/solr