# Field\_value\_factor on a nested field value

**URL:** <https://discuss.elastic.co/t/field-value-factor-on-a-nested-field-value/29928>\
**Category:** Elasticsearch\
**Created:** [September 24, 2015, 4:33pm UTC](https://discuss.elastic.co/t/field-value-factor-on-a-nested-field-value/29928 "2015-09-24T16:33:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [September 24, 2015, 10:24pm UTC](https://discuss.elastic.co/t/field-value-factor-on-a-nested-field-value/29928/2 "2015-09-24T22:24:35Z")

</div>

Yes you want to use field\_value\_factor using views to boost the score. You may want to use nested documents, if you want to keep the relevance between tenant\_id and views. See this recent post about a similar question:

> [@Nested value on function score](https://discuss.elastic.co/t/nested-value-on-function-score/29935/2):
>
> You'd want to do something like this and you may want to consider using field value factor: [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor) { "query": { "filtered": { "query": { "nested": { "path": "reviews", "query": { "function\_score": { "query": { "term": { "reviews.userId": { "value": "1" …

---

_[View the full topic](https://discuss.elastic.co/t/field-value-factor-on-a-nested-field-value/29928)._
