Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to use apachesolr_autocomplete in combination with a multilingual implementation (inspired from apachesolr_multilingual) we noticed that drupal_alter('apachesolr_query', $query); was called before the query fields were added to the query object.
The impact was that our implementation of hook_apachesolr_query_alter() was not able to alter the query fields on queries coming from apachesolr_autocomplete module. You will find below the patch we used.
Comment | File | Size | Author |
---|---|---|---|
#1 | apachesolr_autocomplete-move_alter_query-1882050-1.patch | 1.14 KB | sdelbosc |
Comments
Comment #1
sdelbosc CreditAttribution: sdelbosc commentedHere is the patch we used.
Comment #2
sdelbosc CreditAttribution: sdelbosc commentedComment #3
janusman CreditAttribution: janusman at Acquia commentedCommitted! Thanks!