Skip to content

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 6, 2024

Backports the following commits to 8.x:

This PR introduces a new highlighter, `semantic`, tailored for semantic text fields.
It extracts the most relevant fragments by scoring nested chunks using the original semantic query.

In this initial version, the highlighter returns only the original chunks computed during ingestion. However, this is an implementation detail, and future enhancements could combine multiple chunks to generate the fragments.
@jimczi jimczi added :Search Relevance/Highlighting How a query matched a document >feature auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Dec 6, 2024
Copy link
Contributor

github-actions bot commented Dec 6, 2024

Documentation preview:

…inference/highlight/SemanticTextHighlighterTests.java
@elasticsearchmachine elasticsearchmachine merged commit fe4f510 into elastic:8.x Dec 6, 2024
15 checks passed
@jimczi jimczi deleted the backport/8.x/pr-118064 branch December 6, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >feature :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants