Document boost not applied to numeric fields


(belevian) #1

Hi all,

I am experimenting a strange behaviour with ES for document boosting
on numeric field.

I have created a gist to present my problem :

It seems that the document boost is not working for search based on
numeric fields only.

Maybe It is related to this issue :

I dont know if It is a bug in ES or a limitation in Lucene.

Do you have any solution better than to index my numeric field as
string field with a not_analyzed setting or to add a match_all
subquery with a norms_field setting in my search query ?

Thanks in advance for your answers.


(system) #2