New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining Grandparents aggregations, getting a NullPointer #10158
Labels
Comments
this seems like a bug, @martijnvg can you have a look please? |
@paolociccarese @javanna Sorry, I missed this! I opened PR #10263 for this bug. |
martijnvg
added a commit
to martijnvg/elasticsearch
that referenced
this issue
Mar 28, 2015
1) multiple nested children aggs result in a NPE 2) fixed a counting bug where the same readers where post collected twice Closes elastic#10158
martijnvg
added a commit
that referenced
this issue
Mar 28, 2015
1) multiple nested children aggs result in a NPE 2) fixed a counting bug where the same readers where post collected twice Closes #10158
martijnvg
added a commit
that referenced
this issue
Mar 28, 2015
1) multiple nested children aggs result in a NPE 2) fixed a counting bug where the same readers where post collected twice Closes #10158
mute
pushed a commit
to mute/elasticsearch
that referenced
this issue
Jul 29, 2015
1) multiple nested children aggs result in a NPE 2) fixed a counting bug where the same readers where post collected twice Closes elastic#10158
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Elasticsearch 1.4.4.
I am defining a parent-child index with three levels (grandparents) following the instructions in the document: https://www.elastic.co/guide/en/elasticsearch/guide/current/grandparents.html
My structure is Continent -> Country -> Region
MAPPING
I create an index with the following mapping:
INDEXING
I index three entities:
QUERY THAT WORKS
If I query and aggregate according to the document everything works fine:
QUERY THAT DOES NOT WORK
However, if I try with multi-level aggregations like in:
I get back the following
{
"error" : "SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[b5CbW5byQdSSW-rIwta0rA][geo][0]: QueryPhaseExecutionException[[geo][0]: query[filtered(child_filtercountry/continent)->cache(_type:continent)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[b5CbW5byQdSSW-rIwta0rA][geo][1]: QueryPhaseExecutionException[[geo][1]: query[filtered(child_filtercountry/continent)->cache(_type:continent)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[b5CbW5byQdSSW-rIwta0rA][geo][2]: QueryPhaseExecutionException[[geo][2]: query[filtered(child_filtercountry/continent)->cache(_type:continent)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[b5CbW5byQdSSW-rIwta0rA][geo][3]: QueryPhaseExecutionException[[geo][3]: query[filtered(child_filtercountry/continent)->cache(_type:continent)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[b5CbW5byQdSSW-rIwta0rA][geo][4]: QueryPhaseExecutionException[[geo][4]: query[filtered(child_filtercountry/continent)->cache(_type:continent)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }]",
"status" : 500
}
The 'grandparents' document says: "Querying and aggregating across generations works, as long as you step through each generation."
How do I get the last query and aggregation to work across all three levels of the index?
What am I missing?
Thank you,
Paolo
The text was updated successfully, but these errors were encountered: