Query with facet_filter with a nested filter fails

Hi all,

I was curious if it is possible to use a nested filter inside a
facet_filter. I have curl gist that illustrates the failure I'm getting:

Any idea what, if anything, I am doing wrong?

Thanks!

Bob

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

There's an error in the gist, on line 17,18, where it says

"list":{
"nested1":"nested",
This should be

"nested1":{
"type":"nested",

And then in the search query, line 62, use

"path":"nested1.nested2",

With those changes it works for me.

--Harmen

On Thursday, August 29, 2013 4:16:58 PM UTC+2, btiernay wrote:

Hi all,

I was curious if it is possible to use a nested filter inside a
facet_filter. I have curl gist that illustrates the failure I'm getting:

Example that shows how using a `facet_filter` with a `nested` filter fails to return `nested` facet terms. · GitHub

Any idea what, if anything, I am doing wrong?

Thanks!

Bob

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Oh, my mistake. Thanks for your help!

On Thursday, 29 August 2013 10:59:24 UTC-4, h.b.wa...@alumnus.rug.nl wrote:

There's an error in the gist, on line 17,18, where it says

"list":{
"nested1":"nested",
This should be

"nested1":{
"type":"nested",

And then in the search query, line 62, use

"path":"nested1.nested2",

With those changes it works for me.

--Harmen

On Thursday, August 29, 2013 4:16:58 PM UTC+2, btiernay wrote:

Hi all,

I was curious if it is possible to use a nested filter inside a
facet_filter. I have curl gist that illustrates the failure I'm getting:

Example that shows how using a `facet_filter` with a `nested` filter fails to return `nested` facet terms. · GitHub

Any idea what, if anything, I am doing wrong?

Thanks!

Bob

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Okay, I've updated the gist which now correctly parses, but still
illustrates the issue of not returning facets after applying a nested
filter:

Is this a real issue?

On Thursday, 29 August 2013 10:59:24 UTC-4, h.b.wa...@alumnus.rug.nl wrote:

There's an error in the gist, on line 17,18, where it says

"list":{
"nested1":"nested",
This should be

"nested1":{
"type":"nested",

And then in the search query, line 62, use

"path":"nested1.nested2",

With those changes it works for me.

--Harmen

On Thursday, August 29, 2013 4:16:58 PM UTC+2, btiernay wrote:

Hi all,

I was curious if it is possible to use a nested filter inside a
facet_filter. I have curl gist that illustrates the failure I'm getting:

Example that shows how using a `facet_filter` with a `nested` filter fails to return `nested` facet terms. · GitHub

Any idea what, if anything, I am doing wrong?

Thanks!

Bob

--
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.
For more options, visit https://groups.google.com/groups/opt_out.