Imagine I have three different types of data stored in my ElasticSearch
index: users, posts, and replies. Each post belongs to a particular user.
Each reply belongs to a particular user and post.
I'd like to write a query to find all users with a particular number of
posts (e.g., find all users with exactly one post, or all users with
between ten and twenty posts).
Along those same lines, I'd like to find all users with posts having a
particular number of replies. Basically, I'd like to filter documents based
on facet counts, which seems like a pretty reasonable thing to do, but I
can't figure out any way to do it.
I've tried to model this problem with embedded objects, nested objects, and
parent/child objects, but the query DSL doesn't seem to support these kinds
of queries, no matter how I model the data.
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/055da68c-8641-4592-a0f3-a8f82ded29f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.