Problem with "Has Child Filter"


(Chris-2) #1

Hello,

I'm trying to do an index with three levels : parent, child and
"child of child".
But i always have these failures when i post a query :

"QueryPhaseExecutionException[[parent_child][1]:
query[filtered(name:auchan)->child_filter[department/store]
(filtered(filtered(name:toys)->child_filter[product/department]
(filtered(trademark:tiger)->FilterCacheFilterWrapper(_type:product)))-

FilterCacheFilterWrapper(_type:department))],from[0],size[10]: Query
Failed [Failed to execute child query [filtered(filtered(name:toys)-
child_filter[product/department](filtered(trademark:tiger)-
FilterCacheFilterWrapper(_type:product)))-
FilterCacheFilterWrapper(_type:department)]]]; nested: "

I put my curl recreation here : https://gist.github.com/1941432

1- a file to create the index : "parent child" mapping
2- a file to index the data : "parent child" data
3- a file to query the index : "parent child" query

Thank you in advance.


(Shay Banon) #2

Heya,

Its a problem with multi level parent/child mapping implementation. Opened an issue: https://github.com/elasticsearch/elasticsearch/issues/1751.

-shay.banon

On Wednesday, February 29, 2012 at 5:47 PM, Chris wrote:

Hello,

I'm trying to do an index with three levels : parent, child and
"child of child".
But i always have these failures when i post a query :

"QueryPhaseExecutionException[[parent_child][1]:
query[filtered(name:auchan)->child_filter[department/store]
(filtered(filtered(name:toys)->child_filter[product/department]
(filtered(trademark:tiger)->FilterCacheFilterWrapper(_type:product)))-

FilterCacheFilterWrapper(_type:department))],from[0],size[10]: Query

Failed [Failed to execute child query [filtered(filtered(name:toys)-

child_filter[product/department](filtered(trademark:tiger)-
FilterCacheFilterWrapper(_type:product)))-
FilterCacheFilterWrapper(_type:department)]]]; nested: "

I put my curl recreation here : https://gist.github.com/1941432

1- a file to create the index : "parent child" mapping
2- a file to index the data : "parent child" data
3- a file to query the index : "parent child" query

Thank you in advance.


(Chris-2) #3

ok great, thank you very much.

On 1 mar, 13:24, Shay Banon kim...@gmail.com wrote:

Heya,

Its a problem with multi level parent/child mapping implementation. Opened an issue:https://github.com/elasticsearch/elasticsearch/issues/1751.

-shay.banon

On Wednesday, February 29, 2012 at 5:47 PM, Chris wrote:

Hello,

I'm trying to do an index with three levels : parent, child and
"child of child".
But i always have these failures when i post a query :

"QueryPhaseExecutionException[[parent_child][1]:
query[filtered(name:auchan)->child_filter[department/store]
(filtered(filtered(name:toys)->child_filter[product/department]
(filtered(trademark:tiger)->FilterCacheFilterWrapper(_type:product)))-

FilterCacheFilterWrapper(_type:department))],from[0],size[10]: Query

Failed [Failed to execute child query [filtered(filtered(name:toys)-

child_filter[product/department](filtered(trademark:tiger)-
FilterCacheFilterWrapper(_type:product)))-
FilterCacheFilterWrapper(_type:department)]]]; nested: "

I put my curl recreation here :https://gist.github.com/1941432

1- a file to create the index : "parent child" mapping
2- a file to index the data : "parent child" data
3- a file to query the index : "parent child" query

Thank you in advance.


(system) #4