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

_id may support sorting #18

Open
haveTryTwo opened this issue Oct 1, 2023 · 0 comments
Open

_id may support sorting #18

haveTryTwo opened this issue Oct 1, 2023 · 0 comments

Comments

@haveTryTwo
Copy link
Owner

In some scenarios, when using the search after mechanism, as "Doc values are disabled on this field so sorting on it requires to load a lot of data in memory. Instead it is advised to duplicate (client side or with a set ingest processor) the content of the _id field in another field that has doc value enabled and to use this new field as the tiebreaker for the sort", by copying _id to other fields, _id can be sorted, thus avoiding further copying

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

No branches or pull requests

1 participant