- Issue created by @Taiger
Searches containing the word "and" (and potentially other stopwords or reserved terms) result in empty results. This is due to Solr throwing a syntax error when processing the termfreq() function with quoted values.
Example log error:
{
"error": {
"metadata": [
"error-class", "org.apache.solr.common.SolrException",
"root-error-class", "org.apache.solr.search.SyntaxError"
],
"msg": "org.apache.solr.search.SyntaxError: Expected ',' at position 35 in 'termfreq(\"tm_X3b_en_field_boost\",\"\"and\"\")'",
"code": 400
}
}
Remove the quotation marks in the termfreq() function parameters. The Solarium helper already escapes input, and the extra quotes cause Solr to misinterpret the function syntax.
-
-
-
Active
2.0
Code