Skip to content

Search: use with_positions_offsets term vector for some fields #7724

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

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Dec 2, 2020

Big documents will take some time (and memory) to find and highlight results.
Using a term vector will reduce this computation,
but it will increase the size of the index.
We have a lot of free space, so we are fine.

This was working before for big documents because there wasn't a limit
by default https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#_limiting_the_length_of_an_analyzed_text_during_highlighting

I added this only to fields that can be big, the other text fields don't think will get much from this change, but let me know if you want me to put this on all text fields.

@stsewd stsewd requested a review from ericholscher December 2, 2020 23:28
Big documents will take some time (and memory) to find and highlight results.
Using a term vector will reduce this computation,
but it will increase the size of the index.
We have a lot of free space, so we are fine.

This was working before for big documents because there wasn't a limit
by default https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#_limiting_the_length_of_an_analyzed_text_during_highlighting
@ericholscher ericholscher merged commit 301f19e into master Dec 7, 2020
@ericholscher ericholscher deleted the term-vector branch December 7, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants