# Search relevance in human names

**URL:** https://discuss.elastic.co/t/search-relevance-in-human-names/31576
**Category:** Elasticsearch
**Created:** [October 3, 2015, 9:28am UTC](https://discuss.elastic.co/t/search-relevance-in-human-names/31576 "2015-10-03T09:28:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Himanshu\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/himanshu_jain/32/14512_2.png) [@Himanshu\_Jain](https://discuss.elastic.co/u/Himanshu_Jain)
#### Post date: [October 3, 2015, 9:28am UTC](https://discuss.elastic.co/t/search-relevance-in-human-names/31576/1 "2015-10-03T09:28:43Z")

</div>

I am using elastic search for searching the human names and have about 1 million names in my indices.  
I am stuck in scoring or relevance of the terms hoping you could guide me

for example the 5 names aree :-

1. Mary Jane
2. Raj kumar
3. Naresh Jane
4. Rajhirani
5. Umar raj
6. K B Raj

i have used ngrams analyzers and shingles analyzers to rank my documents..but when i search for raj i get rajhirani and Umar raj above rather than raj which is coming first.

I want my results in order when we type raj

Raj Kumar (Raj is coming first)  
Umar raj (raj is there)  
K B Raj (raj is there)  
Rajhirani (last because due to ngram it constains raj)

Waiting for ur reply.  
Thanks in advance

---

<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 5, 2017, 11:46pm UTC](https://discuss.elastic.co/t/search-relevance-in-human-names/31576/2 "2017-07-05T23:46:57Z")

</div>


