Hi folks,
I'm building a custom facet that would benefit greatly if I could feed it
its documents in a predefined order: the space requirements are much smaller
if I can guarantee that all documents that share the same value on a
particular field pass through the facet collector in one bunch.
I.e., this ordering is cheap (grouping by "tweet"):
{"tweet": 3, "label": 5}
{"tweet": 3, "label": 7}
{"tweet": 4, "label": 3}
{"tweet": 4: "label": 5}
but this is expensive:
{"tweet": 3, "label": 5}
{"tweet": 4, "label": 3}
{"tweet": 3, "label": 7}
{"tweet": 4: "label": 5}
(I'm only interested in aggregate statistics across all "tweet" values, but
I can't calculate the per-tweet value until I'm sure no more labels are
coming -- the actual case is somewhat more complicated, and involves some
timestamp calculations as well, but I think that's irrelevant.)
Is there any way to achieve this? I'm thinking maybe using nested documents
("tweet" is actually a parent-doc ID, but I was hoping to use parent/child
docs to avoid the reindexing requirement).
Regards,
Tikitu
--
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.