roopednra
(roopendra)
September 15, 2014, 4:08pm
1
Filtered query not working with Elasticsearch 1.3.0 . I upgrade
elasticsearch 0.90.5 to 1.3.0 .
I am using elasticsearch below Query DSL. In Elasticsearch 0.90.5 below
query DSL is working fine. But in Elasticsearch 1.3.0 getting error ElasticsearchParseException[Expected
field name but got START_OBJECT
{
"query": {
"match_all": {},
"filtered": {
"filter": {
"bool": {
"must": [
{
"terms": {
"status": [
"publish"
]
}
}
]
}
}
}
}
}
Complete Error Message:
{
error: SearchPhaseExecutionException[Failed to execute phase [query
], all shards failed; shardFailures {[8FQelETaR22xvV1SvynPEQ][esindex][0]:
RemoteTransportException[[server1][inet[/127.0.0.1:9300]][search/phase/query
]]; nested: SearchParseException[[esindex][0]: query[ConstantScore(: )],
from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,"query":{
"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{"status":[
"publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[Expected field
name but got START_OBJECT "filtered"]; }{[8FQelETaR22xvV1SvynPEQ][esindex][1
]: RemoteTransportException[[server1][inet[/127.0.0.1:9300]][search/phase/
query]]; nested: SearchParseException[[esindex][1]: query[ConstantScore
(: )],from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,
"query":{"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{
"status":["publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[
Expected field name but got START_OBJECT "filtered"]; }{[
hZgYLUmsQL2T8z1MY2eyNA][esindex][2]: SearchParseException[[esindex][2]:
query[ConstantScore(: )],from[-1],size[1]: Parse Failure [Failed to parse
source [{"size":1,"query":{"match_all":{},"filtered":{"filter":{"bool":{
"must":[{"terms":{"status":["publish"]}}]}}}}}]]]; nested:
ElasticsearchParseException[Expected field name but got START_OBJECT
"filtered"]; }]
status: 400
}
Any suggestion?
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/032e7ac5-8663-4793-8eec-3661fadceef3%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
dadoonet
(David Pilato)
September 15, 2014, 4:37pm
2
Did you read this?
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 15 sept. 2014 à 18:08, Roopendra Vishwakarma roopendramca@gmail.com a écrit :
Filtered query not working with Elasticsearch 1.3.0. I upgrade elasticsearch 0.90.5 to 1.3.0.
I am using elasticsearch below Query DSL. In Elasticsearch 0.90.5 below query DSL is working fine. But in Elasticsearch 1.3.0 getting error ElasticsearchParseException[Expected field name but got START_OBJECT
{
"query": {
"match_all": {},
"filtered": {
"filter": {
"bool": {
"must": [
{
"terms": {
"status": [
"publish"
]
}
}
]
}
}
}
}
}
Complete Error Message:
{
error: SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[8FQelETaR22xvV1SvynPEQ][esindex][0]: RemoteTransportException[[server1][inet[/127.0.0.1:9300]][search/phase/query]]; nested: SearchParseException[[esindex][0]: query[ConstantScore(*:*)],from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,"query":{"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{"status":["publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[Expected field name but got START_OBJECT "filtered"]; }{[8FQelETaR22xvV1SvynPEQ][esindex][1]: RemoteTransportException[[server1][inet[/127.0.0.1:9300]][search/phase/query]]; nested: SearchParseException[[esindex][1]: query[ConstantScore(*:*)],from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,"query":{"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{"status":["publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[Expected field name but got START_OBJECT "filtered"]; }{[hZgYLUmsQL2T8z1MY2eyNA][esindex][2]: SearchParseException[[esindex][2]: query[ConstantScore(*:*)],from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,"query":{"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{"status":["publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[Expected field name but got START_OBJECT "filtered"]; }]
status: 400
}
Any suggestion?
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/032e7ac5-8663-4793-8eec-3661fadceef3%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/DF1CC3CD-71E0-4DD4-8B62-30BA8286F0C7%40pilato.fr .
For more options, visit https://groups.google.com/d/optout .