# Query "index" filter

**URL:** <https://discuss.elastic.co/t/query-index-filter/6941>\
**Category:** Elasticsearch\
**Created:** [March 8, 2012, 4:16am UTC](https://discuss.elastic.co/t/query-index-filter/6941 "2012-03-08T04:16:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattweber](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattweber/32/44940_2.png) [@mattweber](https://discuss.elastic.co/u/mattweber)\
**Post date:** [March 8, 2012, 4:16am UTC](https://discuss.elastic.co/t/query-index-filter/6941/1 "2012-03-08T04:16:49Z")

</div>

I am searching across multiple indices and would like to filter one of the clauses by a specific index. Is there a way to perform an "index" filter just like the existing "type" filter?

--  
Matt Weber  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [March 8, 2012, 7:49am UTC](https://discuss.elastic.co/t/query-index-filter/6941/2 "2012-03-08T07:49:24Z")

</div>

On Thu 08 Mar 2012 05:16:49 CET, Matt Weber wrote:

> I am searching across multiple indices and would like to filter one of  
> the clauses by a specific index. Is there a way to perform an "index"  
> filter just like the existing "type" filter?
> 
> --  
> Matt Weber  
> Sent with Sparrow [http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig)

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

---

<div class="post-metadata">

**Author:** ![mattweber](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattweber/32/44940_2.png) [@mattweber](https://discuss.elastic.co/u/mattweber)\
**Post date:** [March 8, 2012, 5:37pm UTC](https://discuss.elastic.co/t/query-index-filter/6941/3 "2012-03-08T17:37:31Z")

</div>

Awesome, thanks. I have no idea how I missed this.

--  
Matt Weber  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

On Wednesday, March 7, 2012 at 11:49 PM, Clinton Gormley wrote:

> On Thu 08 Mar 2012 05:16:49 CET, Matt Weber wrote:
> 
> > I am searching across multiple indices and would like to filter one of  
> > the clauses by a specific index. Is there a way to perform an "index"  
> > filter just like the existing "type" filter?
> > 
> > --  
> > Matt Weber  
> > Sent with Sparrow [http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig)
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/indices-query.html)
> 
> clint

---

<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:** [July 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/query-index-filter/6941/4 "2017-07-06T03:36:37Z")

</div>

Closed on July 6, 2017, 3:36am UTC


