# Index not found exception

**URL:** <https://discuss.elastic.co/t/index-not-found-exception/238734>\
**Category:** Elasticsearch\
**Created:** [June 25, 2020, 5:51pm UTC](https://discuss.elastic.co/t/index-not-found-exception/238734 "2020-06-25T17:51:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mamta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mamta1/32/47241_2.png) [@Mamta1](https://discuss.elastic.co/u/Mamta1)\
**Post date:** [June 25, 2020, 5:51pm UTC](https://discuss.elastic.co/t/index-not-found-exception/238734/1 "2020-06-25T17:51:35Z")

</div>

Hi guys,  
Iam new to elasticsearch. I have indexed a small file. I get an error when i try to query it through an API as below:

"{  
"errors": [  
{  
"message": "index\_not\_found\_exception",  
"locations": [  
{  
"line": 2,  
"column": 3  
}  
],  
"path": [  
"gene"  
]  
}  
],  
"data": {  
"gene": null  
}  
}

I am not able to figure out of the file has a problem, its content or the API connection. Is there a way to figure this out?

Mamta

---

<div class="post-metadata">

**Author:** ![Vinayak\_Sapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinayak_sapre/32/45939_2.png) [@Vinayak\_Sapre](https://discuss.elastic.co/u/Vinayak_Sapre)\
**Post date:** [June 27, 2020, 6:29am UTC](https://discuss.elastic.co/t/index-not-found-exception/238734/2 "2020-06-27T06:29:51Z")

</div>

Which API are u using? How do you know indexing was successful? Can you share code you are using to query?

Also post output of

`curl http://localhost:9200/_cat/indices`

---

<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 25, 2020, 6:30am UTC](https://discuss.elastic.co/t/index-not-found-exception/238734/3 "2020-07-25T06:30:04Z")

</div>

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