Skip to content

Commit

Permalink
Merge pull request #44 from digitalutsc/boolean-search-issue
Browse files Browse the repository at this point in the history
Fixed for digitalutsc#4
  • Loading branch information
rosiel authored Apr 9, 2024
2 parents 4e7a3ef + c686b20 commit 2bc8c28
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/AdvancedSearchQueryTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@ public function toSolrQuery(array $solr_field_mapping) {
$value = str_replace('"', "", trim($value));
}
}
// Fixed for https://github.com/digitalutsc/advanced_search/issues/4
if ($this->field !== "all"){
$search_fields = "";
foreach ($solr_field_mapping[$this->field] as $field) {
$search_fields .= " $field:$value";
}
return $search_fields;
}
return $value;
}
else {
Expand Down

0 comments on commit 2bc8c28

Please sign in to comment.