(no subject)


(Abhishek Jajoria) #1

I am trying to use boostinq query.

{
"boosting" : {
"positive" : {
"term" : {
"field1" : "value1"
}
},
"negative" : {
"term" : {
"field2" : "value2"
}
},
"negative_boost" : 0.2
}
}

I have understood it but could you tell me how does negative or
positive boost value is evaluated with the document.


(Shay Banon) #2

Use explain to see how the score is calculated: http://www.elasticsearch.org/guide/reference/api/search/explain.html.

On Monday, March 5, 2012 at 7:11 AM, jajoria abhishek wrote:

I am trying to use boostinq query.

{ "boosting" : { "positive" : { "term" : { "field1" : "value1" } }, "negative" : { "term" : { "field2" : "value2" } }, "negative_boost" : 0.2 } }
I have understood it but could you tell me how does negative or positive boost value is evaluated with the document.


(Abhishek Jajoria) #3

On Mon, Mar 5, 2012 at 8:47 PM, Shay Banon kimchy@gmail.com wrote:

Use explain to see how the score is calculated:
http://www.elasticsearch.org/guide/reference/api/search/explain.html.

On Monday, March 5, 2012 at 7:11 AM, jajoria abhishek wrote:

I am trying to use boostinq query.

{
"boosting" : {
"positive" : {
"term" : {
"field1" : "value1"
}
},
"negative" : {
"term" : {
"field2" : "value2"
}
},
"negative_boost" : 0.2
}
}

I have understood it but could you tell me how does negative or positive boost value is evaluated with the document.

how does negative boost work in boosting query?


(system) #4