# Verification exception querying on multiple index

**URL:** <https://discuss.elastic.co/t/verification-exception-querying-on-multiple-index/200121>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-sql\
**Created:** [September 19, 2019, 6:17am UTC](https://discuss.elastic.co/t/verification-exception-querying-on-multiple-index/200121 "2019-09-19T06:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nithish\_Thirmul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithish_thirmul/32/54470_2.png) [@Nithish\_Thirmul](https://discuss.elastic.co/u/Nithish_Thirmul)\
**Post date:** [September 19, 2019, 6:17am UTC](https://discuss.elastic.co/t/verification-exception-querying-on-multiple-index/200121/1 "2019-09-19T06:17:50Z")

</div>

Hi All,

When i try to query on multiple indexes it throws me a Verification Exception. The single index works fine for me.

Any idea on how to query over multiple indexes in sql query.

**Working one :**

POST \_xpack/sql?format=txt  
{  
"query" : "SELECT count(\*) AS count FROM "logstash-texas-esb-2019.05.11" WHERE MATCH ('message','LAPC%') AND MATCH ('message','cif%') AND MATCH('message','Success%')"  
}

**Response :**

```
 count     

```

* * *

10

**Error Case :**

POST \_xpack/sql?format=txt  
{  
"query" : "SELECT count(_) AS count FROM "logstash-texas-esb-2019.05._" WHERE MATCH ('message','LAPC%') AND MATCH ('message','cif%') AND MATCH('message','Success%')"  
}

**Error Response :**

{  
"error": {  
"root\_cause": [  
{  
"type": "verification\_exception",  
"reason": "Found 1 problem(s)\nline 1:32: [logstash-texas-esb-2019.05._] points to indices [logstash-texas-esb-2019.05.10] and [logstash-texas-esb-2019.05.20] which have different mappings. When using multiple indices, the mappings must be identical."  
}  
],  
"type": "verification\_exception",  
"reason": "Found 1 problem(s)\nline 1:32: [logstash-texas-esb-2019.05._] points to indices [logstash-texas-esb-2019.05.10] and [logstash-texas-esb-2019.05.20] which have different mappings. When using multiple indices, the mappings must be identical."  
},  
"status": 400  
}

---

<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 17, 2019, 6:21am UTC](https://discuss.elastic.co/t/verification-exception-querying-on-multiple-index/200121/2 "2019-10-17T06:21:19Z")

</div>

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