The problem seems to have already been solved. The condition to mark doc_values to true is the field is
- sortable or aggregatable ( that's the case for numeric and string fields )
- sortable or we need to use the values in the projection script ( that's the case for GeoPoint ).
That seems to be consistent with the doc_values in Elasticsearch documentation . |