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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sdelbosc’s picture

Here is the patch we used.

sdelbosc’s picture

Status: Active » Needs review
janusman’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed! Thanks!

  • sdelbosc authored 9d03b99 on 7.x-1.x
    Issue #1882050 by sdelbosc: Query alteration done too early
    

Status: Fixed » Closed (fixed)

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