On which basis we calculate match?

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

--