Field level boosting problem

Hi!

I'm trying to get field level boosting to work and have run into some
problems.

I have set this mapping:

curl -XPUT 'http://localhost:9200/test/doc/_mapping' -d '
{
"doc": {
"name": "_boost",
"null_value": 1
},
"val1" : {
"type": "string"
},
"val2" : {
"type": "string"
}
}
}'

and the following documents:

curl -XPUT 'http://localhost:9200/test/doc/' -d '
{
"val1": {
"_value": "foo",
"_boost": 2.0
},
"val2": {
"_value": "bar",
"_boost": 1.0
}
}'

curl -XPUT 'http://localhost:9200/test/doc/' -d '
{
"val1": {
"_value": "foo",
"_boost": 1.0
},
"val2": {
"_value": "bar",
"_boost": 2.0
}
}'

curl -XPUT 'http://localhost:9200/test/doc/' -d '
{
"val1": {
"_value": "foo",
"_boost": 3.0
},
"val2": {
"_value": "bar",
"_boost": 2.0
}
}'

When doing the search:
curl -XGET 'http://localhost:9200/test/doc/_search?q=val1._value:foo'

I expect to get the last document withe the highest score,
followed by the fist document and the second document to be inserted. But
instead i get the same score on all three documents. What am I doing wrong?

I'm using ElasticSearch 0.20.4 - 2013-01-29.
Found this (https://github.com/elasticsearch/elasticsearch/issues/920) but
it seemed to be implemented 2 years ago, so it should work in this version?

--
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.