# How to get best search result

**URL:** <https://discuss.elastic.co/t/how-to-get-best-search-result/77948>\
**Category:** Elasticsearch\
**Created:** [March 9, 2017, 8:36am UTC](https://discuss.elastic.co/t/how-to-get-best-search-result/77948 "2017-03-09T08:36:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaibhav\_Pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vaibhav_pandey/32/16209_2.png) [@Vaibhav\_Pandey](https://discuss.elastic.co/u/Vaibhav_Pandey)\
**Post date:** [March 9, 2017, 8:36am UTC](https://discuss.elastic.co/t/how-to-get-best-search-result/77948/1 "2017-03-09T08:36:27Z")

</div>

Hi,

I am new to elasticsearch and learning it. I have an issue in getting the good results.  
My documents are like this  
{  
"id":2,  
"name": "Senior Software Engineer - Java",  
.  
.  
.  
}\_  
When I search on field **name** with value as "Java developer".  
Then result which has both the words are not coming at the first position but the documents which have only one word matched are coming first.  
I am using ElasticsearchTemplate for querying.

Please help me.

Regards,  
Vaibhav Pandey

---

<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:** [April 6, 2017, 8:36am UTC](https://discuss.elastic.co/t/how-to-get-best-search-result/77948/2 "2017-04-06T08:36:28Z")

</div>

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