# Text match scoring on multiple indexes

**URL:** <https://discuss.elastic.co/t/text-match-scoring-on-multiple-indexes/218271>\
**Category:** Elasticsearch\
**Created:** [February 7, 2020, 3:56am UTC](https://discuss.elastic.co/t/text-match-scoring-on-multiple-indexes/218271 "2020-02-07T03:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avhirup\_Chakraborty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avhirup_chakraborty/32/56250_2.png) [@Avhirup\_Chakraborty](https://discuss.elastic.co/u/Avhirup_Chakraborty)\
**Post date:** [February 7, 2020, 3:56am UTC](https://discuss.elastic.co/t/text-match-scoring-on-multiple-indexes/218271/1 "2020-02-07T03:56:41Z")

</div>

Hi all,

I had a doubt regarding the score when we fire a multi-index query. Does the scoring happen by default happen on per index tf-idf statistics or global tf-idf statistics?

For example:  
`GET test_1,test_2/_search?pretty=1&search_type=dfs_query_then_fetch { "_source": ["cleaned_name"], "query": { "multi_match": { "query": "dog is cute", "fields": ["cleaned_name", "cleaned_description"] } } } `  
The results will consist documents from either indexes, but in test\_1 dog might be frequent and less important and test\_2 dog might not be frequent(tf-idf). This can lead to multiple problems in my use case,

Is there a way i can use global tf-idf statistics for score calculation while i am performing multi-index text match queries?

---

<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:** [March 6, 2020, 4:07am UTC](https://discuss.elastic.co/t/text-match-scoring-on-multiple-indexes/218271/2 "2020-03-06T04:07:10Z")

</div>

Closed on March 6, 2020, 4:07am UTC

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