Nested field with script_field in a terms facet

On Thu, 2013-01-31 at 01:55 -0800, DH wrote:

Hi everyone.

I stumbled upon an error and I am wondering if that's normal.
I try to run a terms facet with a script_field that looks like this :
"_source.myField".
When myField isn't nested, all's well. I get my results.
But when it is nested, i'm getting a error saying I can't access to
that field. Setting the nested property on the facet doesn't change
anything in that regard.

So, is it possible to use a nested field in such a script?

It works for me. I suggest gisting a curl recreation of the problem, so
that we can see exactly what it is you are doing.

clint

--
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.