Queries against all fields with boosting

Hello,

I want to create a query against all fields my index. Therefore the
_all field becomes handy here. I was wondering if I having boosting in
my mapping included, will the boost still work in the _all field ?
E.g.

curl -XPUT http://localhost:9200/test/data/_mapping -d '{
"contact": {
"name" : {
"boost" : "3.0",
"include_in_all" : "true"
},
"data" : {
"boost" : "1.0",
"include_in_all" : "true"
}
}
}'

So does it mean in this case that the specific boost for the 2 fields
is also taken independently over to the _all field ?

Many thanks,

Michael

Yes, boosted fields will also be boosted in _all.

On Wed, Apr 11, 2012 at 6:30 PM, mkleen mkleen@gmail.com wrote:

Hello,

I want to create a query against all fields my index. Therefore the
_all field becomes handy here. I was wondering if I having boosting in
my mapping included, will the boost still work in the _all field ?
E.g.

curl -XPUT http://localhost:9200/test/data/_mapping -d '{
"contact": {
"name" : {
"boost" : "3.0",
"include_in_all" : "true"
},
"data" : {
"boost" : "1.0",
"include_in_all" : "true"
}
}
}'

So does it mean in this case that the specific boost for the 2 fields
is also taken independently over to the _all field ?

Many thanks,

Michael