Query string becomes malformed when using 'is not' with Edismax enabled
This commit is contained in:
parent
25183ffa25
commit
9320116290
1 changed files with 4 additions and 2 deletions
|
|
@ -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) ? "*:*" : "";
|
||||
}
|
||||
|
||||
// To support negative queries we must first bring in all documents.
|
||||
$q[] = $this->negativeQuery($terms) ? "*:*" : "";
|
||||
$term = array_shift($terms);
|
||||
$q[] = $term->toSolrQuery($field_mapping);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue