# On which basis we calculate match?

**URL:** https://discuss.elastic.co/t/on-which-basis-we-calculate-match/9154
**Category:** Elasticsearch
**Created:** [September 26, 2012, 9:45am UTC](https://discuss.elastic.co/t/on-which-basis-we-calculate-match/9154 "2012-09-26T09:45:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)
#### Post date: [September 26, 2012, 9:45am UTC](https://discuss.elastic.co/t/on-which-basis-we-calculate-match/9154/1 "2012-09-26T09:45:48Z")

</div>

Hi

I want to find exact match,if we take decision on the basis of max score  
which is not best way to get correct matched value.  
For example:  
I have two index with different data (idx\_test1 and  
idx\_test2).

## idx\_test1 idx\_test2

* * *

## id companyName id companyName

* * *

## 1 General Electric 1 General Aircraft Engineering 2 General Aircraft Engineering 3. General Expert 2 General Expert

When i search for "_General Electric_" on index(idx\_test1) and take a  
decision on the basis of max score will be get "_General Electric_" on  
other hand serach on (idx\_test2) i will get "_General Aircraft Engineering_"  
as max score search which is incorrect.  
so my question to you finding the match on the basis of score is correct  
way or there is another way to get decision for exact match.

Thanks

--

---

<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, 3:11am UTC](https://discuss.elastic.co/t/on-which-basis-we-calculate-match/9154/2 "2017-07-06T03:11:21Z")

</div>


