Add SemanticHighlighterQueryEnricherProcessor - #1917
Conversation
PR Reviewer Guide 🔍(Review updated until commit 584cbea)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 584cbea Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit f1569c1
Suggestions up to commit 6cc8350
|
| "semantic_highlighting_query_enricher_executions", | ||
| "processors.search", | ||
| EventStatType.TIMESTAMPED_EVENT_COUNTER, | ||
| Version.V_3_8_0 |
There was a problem hiding this comment.
unsure about this, if 3.8.0 has been released, this should probably be 3.9.0 but current dependencies still target 3.8
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1917 +/- ##
============================================
+ Coverage 83.45% 83.50% +0.05%
- Complexity 3898 3916 +18
============================================
Files 291 292 +1
Lines 13844 13902 +58
Branches 2304 2319 +15
============================================
+ Hits 11553 11609 +56
- Misses 1455 1457 +2
Partials 836 836 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6cc8350 to
f1569c1
Compare
|
Persistent review updated to latest commit f1569c1 |
A new search request processor to enrich the semantic highlighter model id. Works the same way as the neural_query_enricher allowing to define a global or a per field model id. The processor inspects the top level highlight config but also any highlight definitions added to nested query inner hits. Limitations: it does not inspect aggregations (which could possibly be useful for top hits aggregation) and this is left as a possible followup. Main reason for not doing it now is that the batch inference does not support aggregations yet. Resolves opensearch-project#1916 Signed-off-by: David Causse <dcausse@wikimedia.org>
f1569c1 to
584cbea
Compare
|
Persistent review updated to latest commit 584cbea |
Description
A new search request processor to enrich the semantic highlighter model id.
Works the same way as the neural_query_enricher allowing to define a global or a per field model id.
The processor inspects the top level highlight config but also any highlight definitions added to nested query inner hits.
Limitations: it does not inspect aggregations (which could possibly be useful for top hits aggregation) and this is left as a possible followup. Main reason for not doing it now is that the batch inference does not support aggregations yet.
Related Issues
Resolves #1916
Check List
[ ] API changes companion pull request created.--signoff.