# Filtering across indices

**URL:** <https://discuss.elastic.co/t/filtering-across-indices/19072>\
**Category:** Elasticsearch\
**Created:** [August 4, 2014, 3:43pm UTC](https://discuss.elastic.co/t/filtering-across-indices/19072 "2014-08-04T15:43:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![owainb](https://avatars.discourse-cdn.com/v4/letter/o/e99b99/32.png) [@owainb](https://discuss.elastic.co/u/owainb)\
**Post date:** [August 4, 2014, 3:43pm UTC](https://discuss.elastic.co/t/filtering-across-indices/19072/1 "2014-08-04T15:43:07Z")

</div>

Hi,

I am trying to perform a filtered aggregations across multiple indices and  
types and am coming across a problem when filtering on fields that exist in  
one type and not another. The query fails to parse with the error "failed  
to find geo\_point field [place]" when trying to use the geo bounding box  
filter. Steps to recreate the problem can be found  
at [https://gist.github.com/owainb/fb58a7703a73b456b887](https://gist.github.com/owainb/fb58a7703a73b456b887).

Can anyone suggest a way to achieve this type of filtering? If the field  
doesn't exist in a document then I don't want the document to be included  
in the aggregation result, and I need the filter to only apply to the  
aggregation.

Thanks.

Elasticsearch Version: 1.3.0  
OS: Linux 32-bit  
JRE: 1.7.0\_65

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0f11eaab-f9aa-433a-a854-402e5e4a2cc0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f11eaab-f9aa-433a-a854-402e5e4a2cc0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![owainb](https://avatars.discourse-cdn.com/v4/letter/o/e99b99/32.png) [@owainb](https://discuss.elastic.co/u/owainb)\
**Post date:** [August 14, 2014, 4:00pm UTC](https://discuss.elastic.co/t/filtering-across-indices/19072/2 "2014-08-14T16:00:52Z")

</div>

If anyone else comes across this, there is already a similar issue raised  
at [missing not working in filters · Issue #2801 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2801)

On Monday, August 4, 2014 4:43:07 PM UTC+1, Owain Braddick wrote:

> Hi,
> 
> I am trying to perform a filtered aggregations across multiple indices and  
> types and am coming across a problem when filtering on fields that exist in  
> one type and not another. The query fails to parse with the error "failed  
> to find geo\_point field [place]" when trying to use the geo bounding box  
> filter. Steps to recreate the problem can be found at  
> [Filtering points across indexes · GitHub](https://gist.github.com/owainb/fb58a7703a73b456b887).
> 
> Can anyone suggest a way to achieve this type of filtering? If the field  
> doesn't exist in a document then I don't want the document to be included  
> in the aggregation result, and I need the filter to only apply to the  
> aggregation.
> 
> Thanks.
> 
> Elasticsearch Version: 1.3.0  
> OS: Linux 32-bit  
> JRE: 1.7.0\_65

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cab30410-bc86-478e-899a-1998b33e64bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cab30410-bc86-478e-899a-1998b33e64bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:08am UTC](https://discuss.elastic.co/t/filtering-across-indices/19072/3 "2017-07-06T01:08:30Z")

</div>


