I'm a new user of elastic and I'm having trouble building a query, I don't know if it's possible to do what I want. My task is to get the number of products in each category. The problem is that the grouping is done not by a single category id, but by a set of id's that belong to the one category.
From the database I get a list of categories, Category_1, Category_2. There are several genericId belong to each category. Category_1 has generics 123, 124, 125 Category_2 has generics 126, 127, 128
As a result, I need to get the number of products in each category using a set of generics from each category to search.
I can't figure out how to do this with one query, I would be grateful for any help or advice. Thanks.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.