How to ignore field length in search time?


(Xudong You) #1

I know I can disable the field length norm on a field in index time with following like mapping:

{
"mappings": {
"doc": {
"properties": {
"text": {
"type": "string",
"norms": { "enabled": false }
}
}
}
}
}

But is it possible to disable the length norm in search time on an already created index?


(Mark Walkom) #2

You can pass in search time analysers, yes.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-analyzer.html


(system) #3