Skip to content

Instantly share code, notes, and snippets.

@HarshadRanganathan
Created June 27, 2022 08:22
Show Gist options
  • Save HarshadRanganathan/982ee22278fe7870a60ce66af0b79630 to your computer and use it in GitHub Desktop.
Save HarshadRanganathan/982ee22278fe7870a60ce66af0b79630 to your computer and use it in GitHub Desktop.
ES Recommendations

_id field

The value of the _id field is also accessible in aggregations or for sorting, but doing so is discouraged as it requires to load a lot of data in memory. In case sorting or aggregating on the _id field is required, it is advised to duplicate the content of the _id field in another field that has doc_values enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment