Skip to content

Commit

Permalink
fix(Search): Missing hl.q Solr param when requesting highlight with…
Browse files Browse the repository at this point in the history
… complex queries
  • Loading branch information
ambroisemaupate committed Feb 25, 2024
1 parent 2ca31fc commit ae7fb60
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function searchWithHighlight(
): SearchResultsInterface {
$args = $this->argFqProcess($args);
$args["fq"][] = "document_type_s:" . $this->getDocumentType();
$args["hl.q"] = $this->escapeQuery(trim($q));
$args = array_merge($this->getHighlightingOptions($args), $args);
$response = $this->nativeSearch($q, $args, $rows, $searchTags, $proximity, $page);
return $this->createSearchResultsFromResponse($response);
Expand Down

0 comments on commit ae7fb60

Please sign in to comment.