# Aliases across many indices and default scoring function

**URL:** <https://discuss.elastic.co/t/aliases-across-many-indices-and-default-scoring-function/165122>\
**Category:** Elasticsearch\
**Created:** [January 21, 2019, 9:24pm UTC](https://discuss.elastic.co/t/aliases-across-many-indices-and-default-scoring-function/165122 "2019-01-21T21:24:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierrec/32/46190_2.png) [@PierreC](https://discuss.elastic.co/u/PierreC)\
**Post date:** [January 21, 2019, 9:24pm UTC](https://discuss.elastic.co/t/aliases-across-many-indices-and-default-scoring-function/165122/1 "2019-01-21T21:24:21Z")

</div>

I could not find many explanations about querying and alias that sit in front of many indices and its implication regarding relevance scoring.  
If we take a simple TFIDF approach, will each document be scored using a TF across all indices in the alias or will each document be scored only in its own individual index and then the documents returned by each index compete for relevance at the end?

Thanks,  
Pierre

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 22, 2019, 1:52am UTC](https://discuss.elastic.co/t/aliases-across-many-indices-and-default-scoring-function/165122/2 "2019-01-22T01:52:54Z")

</div>

Scoring applies to the documents in a given **shard**. Once that has happened, the scores are then ranked across **all** shards that return a result, to get the end result set for the client.

---

<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 19, 2019, 1:52am UTC](https://discuss.elastic.co/t/aliases-across-many-indices-and-default-scoring-function/165122/3 "2019-02-19T01:52:57Z")

</div>

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