# Document boost not applied to numeric fields

**URL:** https://discuss.elastic.co/t/document-boost-not-applied-to-numeric-fields/6243
**Category:** Elasticsearch
**Created:** [December 27, 2011, 5:21pm UTC](https://discuss.elastic.co/t/document-boost-not-applied-to-numeric-fields/6243 "2011-12-27T17:21:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![belevian](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@belevian](https://discuss.elastic.co/u/belevian)
#### Post date: [December 27, 2011, 5:21pm UTC](https://discuss.elastic.co/t/document-boost-not-applied-to-numeric-fields/6243/1 "2011-12-27T17:21:41Z")

</div>

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 :

> <https://gist.github.com/belevian/1524253>

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

Maybe It is related to this issue :

> <https://github.com/elastic/elasticsearch/issues/943>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 3:44am UTC](https://discuss.elastic.co/t/document-boost-not-applied-to-numeric-fields/6243/2 "2017-07-06T03:44:17Z")

</div>


