When I try
{
"query": {
* "explain": true,*
"function_score": {
"boost_mode": "replace",
"query": {
"match": { "design.PRODUCT_DESC":"cool"}
},
"filter": {
"range": {
"design.PRODUCT_TYPE_NO":{
"from":1,
"to":4
}
}
},
"script_score": {
"params": {
"param1": 2,
"param2": 3.1
},
"script": "_score * doc['design.CLICKS'].value / pow(param1,
param2)"
}
}
}
}
I get the error message
Caused by: org.elasticsearch.index.query.QueryParsingException: [designs]
[_na] query malformed, no field after start_object
at
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:216)
Without the explain line the above query works. What is the real syntax for
explain along with function_score ?
Thanks
Srini
On Friday, April 4, 2014 3:20:16 PM UTC-7, Binh Ly wrote:
>
> Yes, you can do:
>
> curl localhost:9200/_search -d '{
> "explain": true,
> "query": {}
> }'
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e2017fdd-0e46-4925-a252-4876907b03a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.