# Search IMprovement Request

**URL:** https://discuss.elastic.co/t/search-improvement-request/16643
**Category:** Elasticsearch
**Created:** [March 27, 2014, 1:50pm UTC](https://discuss.elastic.co/t/search-improvement-request/16643 "2014-03-27T13:50:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)
#### Post date: [March 27, 2014, 1:50pm UTC](https://discuss.elastic.co/t/search-improvement-request/16643/1 "2014-03-27T13:50:20Z")

</div>

Please guide me to get knowledge in Elasticsearch  
Here is my problem  
I have User form having 40 fields something like  
Salutaion,firstName,lastName,  
emailId,phoneNumber,facebookUrl,Description,skype....etc  
I filled the form like  
Document #1  
salutation : Dr.  
firstName : Clark  
lastName : Kenny  
[emailId:clark@clark.com](mailto:emailId:clark@clark.com),clark2@clark.com,clark3@clark.com  
skype : clark.josi  
facebookUrl : [www.facebook.com/clark](http://www.facebook.com/clark)  
..  
..

Document #2

salutation : ""  
firstName : Kenny  
lastName : Clark  
[emailId:josephGerald@example.com](mailto:emailId:josephGerald@example.com)  
skype : josi  
facebookUrl : ""  
..  
..

Now searched for "Kenny clark"

the order of results are  
Document #1 --score : 0.4585  
Document #2 --score ; 0.3954

But i want Document #2 as first result  
i used matchQuery like  
QueryBuilders.matchQuery("firstName","searchText").boost(0.99f);  
QueryBuilders.matchQuery("emailId","searchText").boost(0.8f);

Could you please explain me how boost and score works?  
Please share any Elasticsearch Java API notes.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e719753e-3ccf-4c0d-adbe-b9ffda8f30ba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e719753e-3ccf-4c0d-adbe-b9ffda8f30ba%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)
#### Post date: [March 27, 2014, 4:00pm UTC](https://discuss.elastic.co/t/search-improvement-request/16643/2 "2014-03-27T16:00:50Z")

</div>

This might a little more detailed than you want, but there is some basic  
info here about how relevance/scoring works:

[http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/relevance-intro.html](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/relevance-intro.html)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6d77fc7b-630c-4e19-9539-98f04e19fdee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6d77fc7b-630c-4e19-9539-98f04e19fdee%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:40am UTC](https://discuss.elastic.co/t/search-improvement-request/16643/3 "2017-07-06T01:40:07Z")

</div>


