Hi all,
I would like to search in my ES DB and return the results according to some
customer score.
Is it possible, if yes, what's the best way to do it, and what would be the
runtime consequences?
Case A:
I have an index, where each document represents a class, with list of
students and a list of teachers.
{
"properties" : {
"students" : {
"include_in_root" : 1,
"type" : "nested",
"properties" : {
"name" : {
"first" : "text",
"last" : "text",
},
},
"email" : { "type" : "string", "index" : "not_analyzed" },
},
"teachers" : {
"include_in_root" : 0,
"include_in_all" : 0,
"type" : "nested",
"properties" : {
"name" : {
"title" : { "type" : "string", "index" : "not_analyzed" },
"first" : "text",
"last" : "text",
},
},
},
},
}
I would like to influence Elastic Search score function, such that it will
give higher score to documents with matched techers.
For example, if I have search for "Smith", I would like the documents with *
teacher* Smith be with higher score than documents with students Smith.
Case B:
Same mapping as in Case A, but now I would like to give a higher score to
teachers with title "Dr" or "Prof".
Thanks a lot!
Dmitry.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.