Hi All,

  Field boost applied in Multimatch query is not contributing to the match 
score. I have indexed few documents and searching document based on field 
'last_name'. I searched with and without field boost using Multimatch 
query, both are giving same match score. Can someone explain me this 
behavior

PUT /megacorp/employee/1
{
"first_name" : "John",
"last_name" :  "Smith",
"age" :        25,
"about" :      "I love to go rock climbing",
"interests": [ "sports", "music" ]
}

PUT /megacorp/employee/2
{
"first_name" :  "Jane",
"last_name" :   "Smith",
"age" :         32,
"about" :       "I like to collect rock albums",
"interests":  [ "music" ]
}

PUT /megacorp/employee/3
{
"first_name" :  "Douglas",
"last_name" :   "Fir",
"age" :         35,
"about":        "I like to build cabinets",
"interests":  [ "forestry" ]
}

POST /megacorp/employee/_search
{   "query" : {"multi_match" : {
"query":    "Smith",
"fields": [ "last_name"  ] ,
"analyzer" : "standard"
}}
}

 POST /megacorp/employee/_search
 {
 "query" : {"multi_match" : {
"query":    "Smith",
"fields": [ "last_name^5"  ] ,
"analyzer" : "standard"
}}
}


Thanks,
Sarath

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2802a6c1-ea55-4780-87bb-c5c6a29d9729%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to