I noticed the doc said the Norms can be disabled for specific field. Can Norms be disabled for all document field?
I did a index templete like below
{
"my_index" : {
"template" : "",
"mappings" : {
"default" : {
"_all" : {"enabled" : false},
"dynamic_templates": [
{
"no_norms" : {
"match": "",
"mapping": {
"properties": {
"type" : "string",
"norms" : { "enabled" : false }
}
}
}
}
]
}
}
}
and this can work, but I can still see _score in query result. Is there something wrong?
curl -XGET 'http://localhost:9200/lsfnew6/test/_search?q=aa:abc&pretty=true'
{
"took" : 10,
"timed_out" : false,
"_shards" : {
"total" : 3,
"successful" : 3,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 0.30685282,
"hits" : [ {
"_index" : "lsfnew6",
"_type" : "test",
"_id" : "1",
"_score" : 0.30685282,
"_source":{"aa":"abc","bb":"xyz"}
} ]
}
}