# Score calculation with nested object

**URL:** <https://discuss.elastic.co/t/score-calculation-with-nested-object/261340>\
**Category:** Elasticsearch\
**Created:** [January 17, 2021, 12:24am UTC](https://discuss.elastic.co/t/score-calculation-with-nested-object/261340 "2021-01-17T00:24:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indy](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@Indy](https://discuss.elastic.co/u/Indy)\
**Post date:** [January 17, 2021, 12:24am UTC](https://discuss.elastic.co/t/score-calculation-with-nested-object/261340/1 "2021-01-17T00:24:02Z")

</div>

Hello !

I try to do this :

I have books, books have many tags. It's a nested relation !  
When a user search "starwars vador", I search in all books to find books with this tags.  
If a book has tags "starwars" and "vador" it's the best match ! And that's I try to do.  
In my case, if a book has 2 tags, he has not a best score than books with only one tag matched.

Is it possible to increase the score according to the number of nested documents matched ?

Thx

---

<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:** [February 14, 2021, 12:24am UTC](https://discuss.elastic.co/t/score-calculation-with-nested-object/261340/2 "2021-02-14T00:24:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
