# Search different fields on multi indices

**URL:** <https://discuss.elastic.co/t/search-different-fields-on-multi-indices/57609>\
**Category:** Elasticsearch\
**Created:** [August 9, 2016, 3:17pm UTC](https://discuss.elastic.co/t/search-different-fields-on-multi-indices/57609 "2016-08-09T15:17:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiorY89](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@LiorY89](https://discuss.elastic.co/u/LiorY89)\
**Post date:** [August 9, 2016, 3:17pm UTC](https://discuss.elastic.co/t/search-different-fields-on-multi-indices/57609/1 "2016-08-09T15:17:38Z")

</div>

lets say i have 6 indices: index1, index2...  
each index have a geo\_point field. on index1 it's name is index1\_location, on index2 it's index2\_location etc

is it possible to search a geo\_box query on all indices on all fields? i want all results in a particular mbr from one of the indices...

---

<div class="post-metadata">

**Author:** ![mikemccand](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mikemccand](https://discuss.elastic.co/u/mikemccand)\
**Post date:** [August 9, 2016, 6:08pm UTC](https://discuss.elastic.co/t/search-different-fields-on-multi-indices/57609/2 "2016-08-09T18:08:46Z")

</div>

Can you build a boolean query that has `should` clauses with your `geo_box` query for each of the 6 fields, and run that across all 6 indices?

---

<div class="post-metadata">

**Author:** ![LiorY89](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@LiorY89](https://discuss.elastic.co/u/LiorY89)\
**Post date:** [August 10, 2016, 6:30am UTC](https://discuss.elastic.co/t/search-different-fields-on-multi-indices/57609/3 "2016-08-10T06:30:51Z")

</div>

this is what i tried to do in the first place:

> ```
> GET index1,index2,index3/_search
> {
> "from" : 0,
> "size" : 8000,
> "query" : {
> "bool" : {
> "should" : [ {
> "bool" : {
> "must" : {
> "geo_bbox" : {
> "index1location" : {
> "top_left" : [34.709999084472656, 32.9900016784668],
> "bottom_right" : [35.209999084472656, 32.560001373291016]
> }
> }
> }
> }
> }, {
> "bool" : {
> "must" : {
> "geo_bbox" : {
> "index2location" : {
> "top_left" : [34.709999084472656, 32.9900016784668],
> "bottom_right" : [35.209999084472656, 32.560001373291016]
> }
> }
> }
> }
> }, {
> "bool" : {
> "must" : {
> "geo_bbox" : {
> "index3location" : {
> "top_left" : [34.709999084472656, 32.9900016784668],
> "bottom_right" : [35.209999084472656, 32.560001373291016]
> }
> }
> }
> }
> } ]
> }
> }
> }
> 
> ```

but i'm getting:  
failed to parse [geo\_bbox] query. could not find [geo\_point] field [index1]

---

<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 5, 2017, 10:28pm UTC](https://discuss.elastic.co/t/search-different-fields-on-multi-indices/57609/4 "2017-07-05T22:28:54Z")

</div>


