I am trying to create an index like so:
{
"my_new_index": {
"mappings": {
"my_mapping": {
"properties": {
"my_id": {
"type": "keyword",
"norms": false
}
}}}
But when I use the API to get the index I do not see 'norms' returned. Is there a way to disable norm creation when I create an index? Thanks in advance!
normsalready defaults to false for fields of type keyword. Elasticsearch often won't return parameters that are set to the defaults. (Try setting norms to `true', and you will see that Elasticsearch will return that setting in the mapping when you retrieve it, because you have set it to a non-default value).
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.