I had a top_children query with a custom score subquery that was working
fine in 19.4 but has broken when I upgraded to .8.
Here is the gist:
It seems like it's trying to find the child field in the parent's mapping
instead of the child mapping? The error (cm is child mapping, pm is parent
mapping):
{
"error" : "SearchPhaseExecutionException[Failed to execute phase
[query_fetch], total failure; shardFailures
{[N2r-dwPcTVq1Ujf0cE2_gQ][tcbug][0]:
QueryPhaseExecutionException[[tcbug][0]:
query[filtered(score_child[cm/pm](filtered(custom score
(cid:c1,function=script[doc['cval'].value], params
[null]))->cache(_type:cm)))->cache(_type:pm)],from[0],size[2]: Query Failed
[Failed to execute child query [score_child[cm/pm](filtered(custom score
(cid:c1,function=script[doc['cval'].value], params
[null]))->cache(_type:cm))]]]; nested: CompileException[[Error: No field
found for [cval] in mapping with types [pm]]\n[Near : {...
doc['cval'].value ....}]\n ^\n[Line: 1, Column: 1]]; nested:
ElasticSearchIllegalArgumentException[No field found for [cval] in mapping
with types [pm]]; }]",
"status" : 500
}
I already upgraded, is it possible to safely downgrade to 0.19.4 using the
same index files or do I have to rebuild?
It seems like it's trying to find the child field in the parent's mapping
instead of the child mapping? The error (cm is child mapping, pm is parent
mapping):
{
"error" : "SearchPhaseExecutionException[Failed to execute phase
[query_fetch], total failure; shardFailures
{[N2r-dwPcTVq1Ujf0cE2_gQ][tcbug][0]:
QueryPhaseExecutionException[[tcbug][0]:
query[filtered(score_child[cm/pm](filtered(custom score
(cid:c1,function=script[doc['cval'].value], params
[null]))->cache(_type:cm)))->cache(_type:pm)],from[0],size[2]: Query Failed
[Failed to execute child query [score_child[cm/pm](filtered(custom score
(cid:c1,function=script[doc['cval'].value], params
[null]))->cache(_type:cm))]]]; nested: CompileException[[Error: No field
found for [cval] in mapping with types [pm]]\n[Near : {... doc['cval'].value
....}]\n ^\n[Line: 1, Column: 1]]; nested:
ElasticSearchIllegalArgumentException[No field found for [cval] in mapping
with types [pm]]; }]",
"status" : 500
}
I already upgraded, is it possible to safely downgrade to 0.19.4 using the
same index files or do I have to rebuild?
It seems like it's trying to find the child field in the parent's
mapping
instead of the child mapping? The error (cm is child mapping, pm is
parent
mapping):
{
"error" : "SearchPhaseExecutionException[Failed to execute phase
[query_fetch], total failure; shardFailures
{[N2r-dwPcTVq1Ujf0cE2_gQ][tcbug][0]:
QueryPhaseExecutionException[[tcbug][0]:
query[filtered(score_child[cm/pm](filtered(custom score
(cid:c1,function=script[doc['cval'].value], params
[null]))->cache(_type:cm)))->cache(_type:pm)],from[0],size[2]: Query
Failed
[Failed to execute child query [score_child[cm/pm](filtered(custom score
(cid:c1,function=script[doc['cval'].value], params
[null]))->cache(_type:cm))]]]; nested: CompileException[[Error: No field
found for [cval] in mapping with types [pm]]\n[Near : {...
doc['cval'].value
....}]\n ^\n[Line: 1, Column: 1]]; nested:
ElasticSearchIllegalArgumentException[No field found for [cval] in
mapping
with types [pm]]; }]",
"status" : 500
}
I already upgraded, is it possible to safely downgrade to 0.19.4 using
the
same index files or do I have to rebuild?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.