I'm having trouble getting term_stats facets to run on documents that
contain nested objects in the parent. The index is about 120GB in
size, and there are around 50-100 nested objects per parent. I
consistently get a Java heap space error, even when the query by
itself only returns results in the low teens. I can run statistical
facets on root object properties, but not on the nested objects.
There are around 300k unique process names, and I'm usually winnowing
that down to around 100k.
ElasticSearch 0.17.4 is set to use 40GB of memory, it's a single node.
My questions are:
- Am I misunderstanding how facets run? I thought facets would only
execute on the results produced by the query it's attached to.
- I should be able to get around this with a script_value in the
facet, but what would the syntax for selecting nested document
gist of the general document and the types of queries I'm trying to
Thanks for any help or pointers!