# Field\_value\_factor wrong depending on index

**URL:** <https://discuss.elastic.co/t/field-value-factor-wrong-depending-on-index/215567>\
**Category:** Elasticsearch\
**Created:** [January 18, 2020, 4:38pm UTC](https://discuss.elastic.co/t/field-value-factor-wrong-depending-on-index/215567 "2020-01-18T16:38:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nicolas-t](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nicolas-t](https://discuss.elastic.co/u/nicolas-t)\
**Post date:** [January 18, 2020, 9:53pm UTC](https://discuss.elastic.co/t/field-value-factor-wrong-depending-on-index/215567/2 "2020-01-18T21:53:28Z")

</div>

Hello,

I fixed it, by using a `object` datatype instead of `nested`, and by typing every properties of these object.

The issue was the same as the one described here :

> [@Field value factor ignoring fields with a value less than one](https://discuss.elastic.co/t/field-value-factor-ignoring-fields-with-a-value-less-than-one/30034):
>
> I'm having difficulty getting function scoring to work when the value is between zero and one (fractional). I want to use a reciprocal/inverse scoring function on these documents where 0.1 would be high and 10+ would be low. However, the function score query appears to ignore any document with a value less than 1. See here example queries and document: Any ideas what causes this or if there is a parameter I'm missing to get the function score to consider these documents? Thank you.

---

_[View the full topic](https://discuss.elastic.co/t/field-value-factor-wrong-depending-on-index/215567)._
