You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the advanced search block does not alter the solr query, resulting in the search input having no effect on the search results.
When does this issue occur?
Any time using the advanced search suite of blocks.
Likely culprit: the hook_search_api_solr_converted_query_alter was deprecated and removed in Search API 4.3. It is no longer being processed. Handle the PostConvertedQueryEvent instead.
I was able to get the code to run, but the issue I'm running into is that you could modify the solarium query in the hook, but don't seem to be able to modify it in the event.
Argh i didn't see your work till after I learned about how to make event handlers! Thank you! If you have the time it would be nice to have more eyes on my PR (i'm a little amazed it seems to work)
@rosiel it looks like we did the exact same thing except I used a different event than you, and it didn't work. Your fix works for me, thanks for putting this together so quickly.
What steps does it take to reproduce the issue?
Using the advanced search block does not alter the solr query, resulting in the search input having no effect on the search results.
Any time using the advanced search suite of blocks.
Likely culprit: the
hook_search_api_solr_converted_query_alter
was deprecated and removed in Search API 4.3. It is no longer being processed. Handle the PostConvertedQueryEvent instead.Source: https://git.drupalcode.org/project/search_api_solr/-/commit/cdf4b1fdc9731fd541bd5bb52ac832726546dfc3#18a19e34ea0d44dc6ff8f9b32f3c7849fff22a17_1932_1926
Solution: Use the PostConvertedQueryEvent instead.
@joshdentremont also came across this.
The text was updated successfully, but these errors were encountered: