Is there anyway to examine that the field is enabled doc_values. I know that if you want to enable doc_values of field, just set mapping doc_values:true.
But I'm a little bit not sure if it is actually effective.
Thank you.
In your post, you said that " only if the custom analyser includes not_analyzed."
Do you mean if the custom analyzer won't work like following?
==Field==
"clientMac":{
"type":"string",
"analyzer":"lower_case_keyword",
"doc_values":true
}
This is actually will cause exception that Elasticsearch won't work
==>org.elasticsearch.index.mapper.MapperParsingException: Field [clientMac] cannot be analyzed and have doc values
So my conclusion is unless you specifically set doc_values:true, and make index:"not_analyzed" on string field(or numeric / boolean / date), you will not get doc_values enabled.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.