Search IMprovement Request


(Praveenkumar Arepalli) #1

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,clark2@clark.com,clark3@clark.com
skype : clark.josi
facebookUrl : www.facebook.com/clark
..
..

Document #2

salutation : ""
firstName : Kenny
lastName : Clark
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e719753e-3ccf-4c0d-adbe-b9ffda8f30ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #2

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

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6d77fc7b-630c-4e19-9539-98f04e19fdee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3