# Search multi-indices(having some same field name), how to search cross indices

**URL:** <https://discuss.elastic.co/t/search-multi-indices-having-some-same-field-name-how-to-search-cross-indices/144578>\
**Category:** Elasticsearch\
**Created:** [August 15, 2018, 7:22pm UTC](https://discuss.elastic.co/t/search-multi-indices-having-some-same-field-name-how-to-search-cross-indices/144578 "2018-08-15T19:22:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam5530](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@sam5530](https://discuss.elastic.co/u/sam5530)\
**Post date:** [August 15, 2018, 7:22pm UTC](https://discuss.elastic.co/t/search-multi-indices-having-some-same-field-name-how-to-search-cross-indices/144578/1 "2018-08-15T19:22:12Z")

</div>

Hi, Have some question on cross multi-indices search (using version 6.3)  
Say, two indices (on purpose, no merge) with one common field name subject  
Index1 field: subject, .........  
Index2 field: subject,........

I'd like to query both indices on field subject, but boosting different weight during query time:  
on one index:  
POST \_search  
{  
"query": {  
"match" : {  
"subject": {  
"query": "demo",  
"boost": 2  
}  
}  
}  
}  
How do I refer to field under different index ?

Any idea/help is highly appreciated.

Sam

---

<div class="post-metadata">

**Author:** ![jaddison](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jaddison](https://discuss.elastic.co/u/jaddison)\
**Post date:** [September 9, 2018, 10:37pm UTC](https://discuss.elastic.co/t/search-multi-indices-having-some-same-field-name-how-to-search-cross-indices/144578/2 "2018-09-09T22:37:18Z")

</div>

Looks like [index boosting](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-index-boost.html) is sort of what you're looking for?

---

<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:** [October 7, 2018, 10:37pm UTC](https://discuss.elastic.co/t/search-multi-indices-having-some-same-field-name-how-to-search-cross-indices/144578/3 "2018-10-07T22:37:26Z")

</div>

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