# Getting wrong search results

**URL:** <https://discuss.elastic.co/t/getting-wrong-search-results/99576>\
**Category:** Elasticsearch\
**Created:** [September 6, 2017, 11:58am UTC](https://discuss.elastic.co/t/getting-wrong-search-results/99576 "2017-09-06T11:58:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HritikJain](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@HritikJain](https://discuss.elastic.co/u/HritikJain)\
**Post date:** [September 6, 2017, 11:58am UTC](https://discuss.elastic.co/t/getting-wrong-search-results/99576/1 "2017-09-06T11:58:00Z")

</div>

Hi Guys,

I am working with Elastic search 2.4.x.  
I am getting incorrect search results:  
When I search for "Bil" it returns "Billy Brag" before "Bill Bailey". I need to have "Bill Bailey" First.

Here is search query:

```
GET local_product_1_v3 / document / _search{
"size": 10000,
"fields": [
	"name"
],
"query": {
	"bool": {
		"should": [{
				"match": {
					"name": "bil"
				}
			}
		]
	}
}

```

}

Can any body help me to to get correct results, If this is only the final/correct then explain how this is works.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [September 6, 2017, 4:33pm UTC](https://discuss.elastic.co/t/getting-wrong-search-results/99576/2 "2017-09-06T16:33:04Z")

</div>

Why is it a better match?  
What is your analyzer?

---

<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 4, 2017, 4:33pm UTC](https://discuss.elastic.co/t/getting-wrong-search-results/99576/3 "2017-10-04T16:33:21Z")

</div>

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