# Search multiple indexes and nested

**URL:** <https://discuss.elastic.co/t/search-multiple-indexes-and-nested/246735>\
**Category:** Elasticsearch\
**Created:** [August 28, 2020, 9:51am UTC](https://discuss.elastic.co/t/search-multiple-indexes-and-nested/246735 "2020-08-28T09:51:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chomenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chomenko/32/74686_2.png) [@chomenko](https://discuss.elastic.co/u/chomenko)\
**Post date:** [August 28, 2020, 10:36am UTC](https://discuss.elastic.co/t/search-multiple-indexes-and-nested/246735/2 "2020-08-28T10:36:21Z")

</div>

I found it [here](https://discuss.elastic.co/t/best-way-to-query-nested-objects-in-indexes-where-they-dont-exist/157923/2)

When searching for multiple indexes. It needs to be added to the nested `ignore_unmapped: true`

```auto
nested: {
	path: "nest",
	ignore_unmapped: true,
	query: {
		bool: {
			must: [
				//....
			]
		}
	}
}

```

---

_[View the full topic](https://discuss.elastic.co/t/search-multiple-indexes-and-nested/246735)._
