Adding _id to doc_values to help w/ sorting performance


(Darin Howard) #1

End goal is to have the value set in _id saved w/ doc_values enabled. I'm looking to do this in order to increase sorting performance - where id is used.

Regardless of if the _id values is provided or generated, is there a way to set doc_values on this field?

If not, is it possible to copy the value of _id into another field that does have doc_values enabled?

Other thoughts ?

Running ES version 1.7.5


(Darin Howard) #2

I was able to do this w/ a transform, setting a newly defined field to the values of _id on insert.


(system) #3

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