user3859234
user3859234

Reputation: 31

What is the use of doc_values:true in Elastic search?

In Elastic search , for mapping they are using

doc_values : true , what is the use of this?

If already asked, Please don't ignore.I need the answer.

Thanks in advance.

Upvotes: 0

Views: 786

Answers (1)

Jeremy
Jeremy

Reputation: 1924

From the documentation:

Doc values are now only about 10–25% slower than in-memory fielddata, and come with two major advantages:

  • They live on disk instead of in heap memory. This allows you to work with quantities of fielddata that would normally be too large to fit into memory. In fact, your heap space ($ES_HEAP_SIZE) can now be set to a smaller size, which improves the speed of garbage collection and, consequently, node stability.
  • Doc values are built at index time, not at search time. While in-memory fielddata has to be built on the fly at search time by uninverting the inverted index, doc values are prebuilt and much faster to initialize.

Upvotes: 1

Related Questions