Skip to content

Commit 9c06ef7

Browse files
author
Alejandro Hernandez
committed
Add ability to specify elastic results highlight tags
1 parent ca0b3ea commit 9c06ef7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/eighty-games-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'contexture-elasticsearch': minor
3+
---
4+
5+
Change default elastic highlight tags from b to em

packages/provider-elasticsearch/src/example-types/results/highlighting/search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
} from './response.js'
1313

1414
let tags = {
15-
pre: '<b class="search-highlight">',
16-
post: '</b>',
15+
pre: '<em class="search-highlight">',
16+
post: '</em>',
1717
}
1818

1919
export let searchWithHighlights = (node, search, schema) => async (body) => {

0 commit comments

Comments
 (0)