Skip to content
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

Open
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 20, 2024

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:

  • Doc values for dense embeddings
  • Term vectors for sparse embeddings

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.

jimczi and others added 30 commits November 21, 2024 20:46
Mikep86 and others added 10 commits December 17, 2024 13:35
…tic text format selection (#119070)

This change replaces the system property used for enabling the new semantic text format with a dedicated index setting resolved at index creation.

The new format is tied to the index version, so this approach ensures that indices created with the new version but using the legacy format retain their original configuration. By sealing the format at index creation, we prevent unexpected changes and provide flexibility in tests to explicitly choose the desired format for execution.
@jimczi jimczi added >enhancement :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.0.0 v8.18.0 labels Dec 20, 2024
@jimczi jimczi requested review from Mikep86 and kderusso December 20, 2024 10:11
@jimczi jimczi requested a review from a team as a code owner December 20, 2024 10:11
@jimczi jimczi removed the request for review from a team December 20, 2024 10:11
Copy link
Contributor

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

@elasticsearchmachine
Copy link
Collaborator

Hi @jimczi, I've created a changelog YAML for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants