# Beginner ? about exact match (i think)

**URL:** <https://discuss.elastic.co/t/beginner-about-exact-match-i-think/11366>\
**Category:** Elasticsearch\
**Created:** [March 28, 2013, 9:25pm UTC](https://discuss.elastic.co/t/beginner-about-exact-match-i-think/11366 "2013-03-28T21:25:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticnoob](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@elasticnoob](https://discuss.elastic.co/u/elasticnoob)\
**Post date:** [March 28, 2013, 9:25pm UTC](https://discuss.elastic.co/t/beginner-about-exact-match-i-think/11366/1 "2013-03-28T21:25:20Z")

</div>

i am a complete beginner here, but this is my issue:

an example of what we are considering a non-relevant search result is:  
- if a user searches for the word "paint", we do not to return results  
like "painter".

how do i exclude those type of matches from being returned?

--  
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:** ![Fish\_Tastic](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@Fish\_Tastic](https://discuss.elastic.co/u/Fish_Tastic)\
**Post date:** [March 29, 2013, 3:31am UTC](https://discuss.elastic.co/t/beginner-about-exact-match-i-think/11366/2 "2013-03-29T03:31:17Z")

</div>

Elasticsearch should take care of that already, try it on your local  
machine first. In my example below, if you search for "car" you will not  
get any results. If you search for "carp" however, you will get a result  
back

curl -XPUT '[http://localhost:9200/animal/fish/1](http://localhost:9200/animal/fish/1)' -d '{"name" : "channel cat

> fish", "type" : "cat-fish"}'  
> curl -XPUT '[http://localhost:9200/animal/fish/2](http://localhost:9200/animal/fish/2)' -d '{"name" : "blue cat  
> fish", "type" : "cat-fish"}'  
> curl -XPUT '[http://localhost:9200/animal/fish/3](http://localhost:9200/animal/fish/3)' -d '{"name" : "atlantic  
> salmon", "type" : "salmon"}'  
> curl -XPUT '[http://localhost:9200/animal/fish/4](http://localhost:9200/animal/fish/4)' -d '{"name" : "blue  
> salmon", "type" : "salmon"}'  
> curl -XPUT '[http://localhost:9200/animal/fish/5](http://localhost:9200/animal/fish/5)' -d '{"name" : "blue  
> carp", "type" : "carp"}'
> 
> curl -XGET '[http://localhost:9200/animal/fish/\_search?pretty=true](http://localhost:9200/animal/fish/_search?pretty=true)' -d  
> '{  
> "query" : {  
> "bool" : {  
> "should" : {  
> "match" : { "\_all" : "carp"}  
> }  
> }  
> }  
> }'

--  
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:43am UTC](https://discuss.elastic.co/t/beginner-about-exact-match-i-think/11366/3 "2017-07-06T02:43:45Z")

</div>


