Skip to content

Commit

Permalink
Merge pull request #157 from smartprocure/feature/merge-original-high…
Browse files Browse the repository at this point in the history
…light-fields

Merge Highlight Fields From Schema
  • Loading branch information
stellarhoof authored Nov 8, 2023
2 parents a5cc570 + 5917d44 commit 884fed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-ghosts-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'contexture-elasticsearch': patch
---

Ensure original highlight fields from schema merge into highlighting configuration
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export let getHighlightSettings = (schema, node) => {
_.concat(schemaInlineAliases), // Include the provided field aliases if any
_.uniq,
arrayToHighlightsFieldMap, // Convert the array to object map so we can simply _.pick again
_.merge(schemaHighlight.fields || {}),
(filtered) =>
showOtherMatches
? // Highlight on all fields specified in the initial _.pick above.
Expand Down

0 comments on commit 884fed0

Please sign in to comment.