Index time boosting can be more than 5?


(anusha) #1

Hi,
I would like to give boosting to different fields at index time, for that we can give boost: 1,2,3,4,5 any of those values.

example for index time boost:

"Model": {
"type": "string",
"boost": 2,
"index": "not_analyzed",
"norms": {
"enabled": true
},
"fields": {
"raw": {
"type": "string"
}
}
},
"ModelCode": {
"type": "string",
"include_in_all": false
},
"ShortYear": {
"type": "string",
"boost": 4,
"index": "not_analyzed",
"norms": {
"enabled": true
}
}

In this way am using....

Where I have number of fields, such that I would like to give boost value even 6, 7, 8..
Can I give boost value >5?????
Will this index time boosting works for nay type of query????


(Mark Walkom) #2

I don't think there is a practical limit to the boost factor you can apply.


(anusha) #3

Thanks Mark


(Adrien Grand) #4

This boost parameter will be merged with a factor for length normalization into what are called norms. These norms are encoded on one byte, so they are not very accurate. If you want to do per-field boosting, it's usually more flexible to do it at query time. Additionally, query-time boosts do not suffer from accuracy degradation like index-time boosts.


(system) #5