[custom_filters_score] query does not support [max_boost]

I'm using elasticsearch-0.19.0, and I'm getting an error trying to use
max_boost with custom_filters_score,
as per the documentation:
http://www.elasticsearch.org/guide/reference/query-dsl/custom-filters-score-query.html

Here is my query object. I have max_boost at the same level as score_mode,
and I'm confused as to where else it could go, or if I'm doing something
else wrong.
Thanks in advance!

{
"query":{
"custom_filters_score":{
"query":{
"term":{
"go":"sf"
}
},
"score_mode":"total",
"max_boost":50,
"params":{
"param3":29,
"param2":-1,
"param1":-1
},
"filters":[
{
"filter":{
"terms":{
"names":[
"Joe",
"Bill"
]
}
},
"boost":2
},
{
"filter":{
"numeric_range":{
"age":{
"to":40,
"from":25
}
}
},
"script":
"doc['age'].value>param3 ? pow(doc['age'].value-param3,2)*param1 : pow(doc['age'].value-param3,2)*param2"
}
]
}
}
}

--

That looks correct. What error are you getting?

On Saturday, November 24, 2012 2:41:19 PM UTC-5, Daniel Weitzenfeld wrote:

I'm using elasticsearch-0.19.0, and I'm getting an error trying to use
max_boost with custom_filters_score,
as per the documentation:

http://www.elasticsearch.org/guide/reference/query-dsl/custom-filters-score-query.html

Here is my query object. I have max_boost at the same level as
score_mode,
and I'm confused as to where else it could go, or if I'm doing something
else wrong.
Thanks in advance!

{
"query":{
"custom_filters_score":{
"query":{
"term":{
"go":"sf"
}
},
"score_mode":"total",
"max_boost":50,
"params":{
"param3":29,
"param2":-1,
"param1":-1
},
"filters":[
{
"filter":{
"terms":{
"names":[
"Joe",
"Bill"
]
}
},
"boost":2
},
{
"filter":{
"numeric_range":{
"age":{
"to":40,
"from":25
}
}
},
"script":
"doc['age'].value>param3 ? pow(doc['age'].value-param3,2)*param1 : pow(doc['age'].value-param3,2)*param2"
}
]
}
}
}

--