elasticsearch disable term frequency scoring elasticsearch disable term frequency scoring elasticsearch elasticsearch

elasticsearch disable term frequency scoring


Looks like one cannot override the index options for a field after the field has been initial set in mapping

Example:

put testput test/business/_mapping{      "properties": {         "name": {            "type": "string",           "index_options": "freqs",            "norms": {               "enabled": false            }         }      }}put test/business/_mapping{      "properties": {         "name": {            "type": "string",            "index_options": "docs",            "norms": {               "enabled": false            }         }      }}get  test/business/_mapping   {   "test": {      "mappings": {         "business": {            "properties": {               "name": {                  "type": "string",                  "norms": {                     "enabled": false                  },                  "index_options": "freqs"               }            }         }      }   }}

You would have to recreate the index to pick up the new mapping


your field type must be text

you must re-indexing elasticsearch - create a new index

"mappings": {    "properties": {      "text": {        "type": "text",        "index_options": "docs"      }    }  }

https://www.elastic.co/guide/en/elasticsearch/reference/current/index-options.html