Elasticsearch takes into account the length of the document when ranking (they call this field normalization). The default behavior is to rank shorter matching documents than longer matching documents.
Is it possible to disable or change the normalization of a field during a query ? I know the index time omit_norms , but I would prefer not to reinstall everything to try this.
In addition, instead of simply turning off field normalization, I wanted to try a few things. I would like to consider the length of the field, but not as much as elasticsearch does now. By default, the behavior of the document will be 2 times the document, which is twice as large. I wanted to try the non-linear relationship between ranking and length.
source share