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.
Problem/Motivation
When search for a term that is in surrounded by quotes, the search_api_solr_boosted_keyword_search_api_solr_query_alter function builds out some extra boostFunctions with invalid syntax, producing a syntax error in Solr. This is because the terms aren't being escaped before assembling the queries.
Comment | File | Size | Author |
---|---|---|---|
#2 | escape_terms-3264617-2.patch | 794 bytes | gcb |
Comments
Comment #2
gcbThis fixed it for my use case.
Comment #4
daften CreditAttribution: daften at Dropsolid commentedLooks good, tested and committed! Thanks for the contribution!