# ES get IndexMissingException when search not existed index

**URL:** <https://discuss.elastic.co/t/es-get-indexmissingexception-when-search-not-existed-index/13370>\
**Category:** Elasticsearch\
**Created:** [August 28, 2013, 2:37pm UTC](https://discuss.elastic.co/t/es-get-indexmissingexception-when-search-not-existed-index/13370 "2013-08-28T14:37:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lijionly](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@lijionly](https://discuss.elastic.co/u/lijionly)\
**Post date:** [August 28, 2013, 2:37pm UTC](https://discuss.elastic.co/t/es-get-indexmissingexception-when-search-not-existed-index/13370/1 "2013-08-28T14:37:14Z")

</div>

Hi,  
We are building search system like this:

1. backend, use elasticsearch as search engine. Every day create a new  
index by using the date as index name, such as 20130801,20130802...
2. frontend use web page, pepole can select the date range in calendar and  
search for the matched records.  
Here is a problem, frontend user don't know when ES start to index. He may  
just choose a date range from the web, such as 20130720 to 20130802.  
In backend, we will compose the REST request to search in all selected  
index: [http://locahost:9200/20130720,20130721...20130802/](http://locahost:9200/20130720,20130721...20130802/)...  
But ES just has index since 20130801, which means that the index  
20130720,20130721...don't exist. And this operation will get  
IndexMissingException result.

Is there a way to ignore IndexMissingException and just return the matched  
records in existed index?  
Or there is some other way to do the things?

Thanks.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:19am UTC](https://discuss.elastic.co/t/es-get-indexmissingexception-when-search-not-existed-index/13370/2 "2017-07-06T02:19:16Z")

</div>


