When are inverted indexes generated

When are inverted indexes used by Elasticsearch to reply efficiently to search queries generated ? Is it at index time, or are they generated on the go from doc values ? Are they stored on the disk as well ?

They are generated at index time (doc values are also generated at index time), and they are also stored on disk.

Elasticsearch uses Apache Lucene for storing and search, and you might want to check out their documentation for more information.

See https://lucene.apache.org/core/7_2_1/index.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.