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.

CommentFileSizeAuthor
#2 escape_terms-3264617-2.patch794 bytesgcb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gcb created an issue. See original summary.

gcb’s picture

Status: Active » Needs review
FileSize
794 bytes

This fixed it for my use case.

  • daften committed f4c7f92 on 2.0.x
    Issue #3264617 by gcb: Solr syntax error when there's a "quoted term" in...
daften’s picture

Status: Needs review » Fixed

Looks good, tested and committed! Thanks for the contribution!

Status: Fixed » Closed (fixed)

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