Query string becomes malformed when using 'is not' with Edismax enabled

This commit is contained in:
Amy Li 2023-03-13 16:03:03 -04:00 committed by amym-li
parent 25183ffa25
commit 9320116290

View file

@ -160,9 +160,11 @@ class AdvancedSearchQuery {
$isSearchAllFields = false;
$fields_list = [];
if (!$isDismax) {
// To support negative queries we must first bring in all documents.
$q[] = $this->negativeQuery($terms) ? "*:*" : "";
}
$term = array_shift($terms);
$q[] = $term->toSolrQuery($field_mapping);