# Doc that explicitly exists in the Index comes second when searched

**URL:** <https://discuss.elastic.co/t/doc-that-explicitly-exists-in-the-index-comes-second-when-searched/129708>\
**Category:** Elasticsearch\
**Created:** [April 26, 2018, 3:14pm UTC](https://discuss.elastic.co/t/doc-that-explicitly-exists-in-the-index-comes-second-when-searched/129708 "2018-04-26T15:14:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agertsovich](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@agertsovich](https://discuss.elastic.co/u/agertsovich)\
**Post date:** [April 26, 2018, 3:14pm UTC](https://discuss.elastic.co/t/doc-that-explicitly-exists-in-the-index-comes-second-when-searched/129708/1 "2018-04-26T15:14:03Z")

</div>

Hi team. Im new to ES. My index has 19K documents spread over 2 fields: 'banner' and 'id'. And what sometimes happens is that when i search for a banner that explicitly exists (as-in-search) in the index it only comes in second, meaning with second best score. I would expect ES to return precisely what’s in the index if that’s precisely what im searching for. Here is an example:

Query (over 'banner' field only): ‘Caldera OpenLinux Server’  
Result 1: ‘Caldera OpenLinux Desktop’  
Result 2: ‘Caldera OpenLinux Server’

I did not modify anything after installing elasticsearch and i use it pretty much out-of-the-box.

querry = {'query': {'match': {'banner': 'Caldera OpenLinux Server'}}}  
print ((es.search(index='epm', doc\_type='banners', body=querry, size = 2)))

Can you guys help me with an idea as to why this happens and maybe how to deal with that? Thank you.

---

<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:** [May 24, 2018, 3:14pm UTC](https://discuss.elastic.co/t/doc-that-explicitly-exists-in-the-index-comes-second-when-searched/129708/2 "2018-05-24T15:14:05Z")

</div>

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