# Exact match not working

**URL:** <https://discuss.elastic.co/t/exact-match-not-working/35787>\
**Category:** Elasticsearch\
**Created:** [November 27, 2015, 6:46pm UTC](https://discuss.elastic.co/t/exact-match-not-working/35787 "2015-11-27T18:46:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![vtst2412](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vtst2412/32/6228_2.png) [@vtst2412](https://discuss.elastic.co/u/vtst2412)\
**Post date:** [November 28, 2015, 2:29am UTC](https://discuss.elastic.co/t/exact-match-not-working/35787/6 "2015-11-28T02:29:18Z")

</div>

> [@setuk](#):
>
> curl -XPOST [http://192.168.134.179:9200/testnames2/test](http://192.168.134.179:9200/testnames2/test)

Your POST is to the wrong resource. You need to POST to your index (i.e. testnames2). Your type hrname and its mapping was never create. Notice the type field of the response.

> [@setuk](#):
>
> Create the index with a single type, and one field which is not\_analyzed  
> {"\_index":"testnames2","\_type":"test","\_id":"AVFKeAndR0bg8LfMuKAG","\_version":1,"\_shards":{"total":2,"successful":1,"failed":0},"created":true}

---

_[View the full topic](https://discuss.elastic.co/t/exact-match-not-working/35787)._
