-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor semantic text field to align with text field behaviour #119183
Conversation
…the original field
Documentation preview: |
Pinging @elastic/search-eng (Team:SearchOrg) |
Pinging @elastic/search-relevance (Team:Search - Relevance) |
Hi @jimczi, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review, but I think the comments cover the main points to discuss.
docs/reference/search/search-your-data/semantic-search-semantic-text.asciidoc
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/index/engine/TranslogDirectoryReader.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I flagged some things we should address in follow-ups.
...ain/java/org/elasticsearch/xpack/inference/mapper/SemanticInferenceMetadataFieldsMapper.java
Outdated
Show resolved
Hide resolved
...nce/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java
Outdated
Show resolved
Hide resolved
...nce/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java
Outdated
Show resolved
Hide resolved
...nce/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java
Outdated
Show resolved
Hide resolved
…tic#119183) Co-authored-by: Mike Pellegrini <[email protected]>
#119339) * Refactor semantic text field to align with text field behaviour (#119183) Co-authored-by: Mike Pellegrini <[email protected]> * fix compil after backport * fix compil after backport (bis) --------- Co-authored-by: Mike Pellegrini <[email protected]>
This change adapts the semantic highlighter to work with the new format introduced in elastic#119183.
This change adapts the semantic highlighter to work with the new format introduced in elastic#119183.
#119604) This change adapts the semantic highlighter to work with the new format introduced in #119183. Co-authored-by: Kathleen DeRusso <[email protected]>
elastic#119604) This change adapts the semantic highlighter to work with the new format introduced in elastic#119183. Co-authored-by: Kathleen DeRusso <[email protected]>
#119604) (#119657) This change adapts the semantic highlighter to work with the new format introduced in #119183. Co-authored-by: Kathleen DeRusso <[email protected]>
The semantic text format was updated in elastic#119183. This commit removes the last remaining reference to the old format from the documentation to ensure consistency.
The semantic text format was updated in #119183. This commit removes the last remaining reference to the old format from the documentation to ensure consistency.
…21276) The semantic text format was updated in elastic#119183. This commit removes the last remaining reference to the old format from the documentation to ensure consistency.
This PR updates the semantic text field to function similarly to a standard text field. The original source content is preserved, while embedding chunks are retrieved from:
The new format is not enabled by default. An internal index setting is used to enable the new format, allowing for a controlled transition. The switch to the new format will be implemented in a subsequent PR.
Highlighting support is also missing (for the new format) and will be added in a follow up.
Note: Individual commits were reviewed in the original branch for clarity.
This PR is intended for merging rather than detailed review.