[ACS-6427] Add search highlighting (#3637)

* [ACS-6427] Initial commit for search highlights

* [ACS-6427] Add correct highlighting config, handle highlights in search results

* [ACS-6427] CR fixes

* [ACS-6427] CR fix

* [ACS-6427] Locator fix

* [ACS-6427] E2E fix

---------

Co-authored-by: swapnil.verma <swapnil.verma@globallogic.com>
This commit is contained in:
MichalKinas
2024-02-15 16:26:09 +01:00
committed by GitHub
co-authored by swapnil.verma
parent 60a4abaa55
commit 4766bfe707
12 changed files with 303 additions and 85 deletions
@@ -1532,7 +1532,27 @@
"visible": "app.areCategoriesEnabled"
}
}
]
],
"highlight": {
"prefix": "<span class='aca-highlight'>",
"postfix": "</span>",
"fields": [
{
"field": "cm:title"
},
{
"field": "cm:name"
},
{
"field": "cm:description",
"snippetCount": 1
},
{
"field": "cm:content",
"snippetCount": 1
}
]
}
},
{
"id": "app.search.dublin-core",
@@ -1688,7 +1708,27 @@
}
}
}
]
],
"highlight": {
"prefix": "<span class='aca-highlight'>",
"postfix": "</span>",
"fields": [
{
"field": "cm:title"
},
{
"field": "cm:name"
},
{
"field": "cm:description",
"snippetCount": 1
},
{
"field": "cm:content",
"snippetCount": 1
}
]
}
},
{
"id": "app.search.effectivity",
@@ -1846,7 +1886,27 @@
}
}
}
]
],
"highlight": {
"prefix": "<span class='aca-highlight'>",
"postfix": "</span>",
"fields": [
{
"field": "cm:title"
},
{
"field": "cm:name"
},
{
"field": "cm:description",
"snippetCount": 1
},
{
"field": "cm:content",
"snippetCount": 1
}
]
}
}
],