not too sure, what you are after with your classification, but you could
execute an aggregation with a has_child filter, which returns the product
category of a certain product.
However I am not sure, if this is the right approach, as in most systems a
product can have more than one category I guess (and you can only define
one parent). Maybe you want to put your category ids into an array of the
product and call aggregations on that array to get category statistics, but
this is highly dependent on your use-case.
--Alex
On Sun, Feb 16, 2014 at 1:01 PM, Georges@Bibtol sg@quable.fr wrote:
Hi all,
I have 2 types of documents ( categories & products ).
Categories could have parent (other categories) so it is a kind of nested
tree.
Products have a parent (categories)
I am doing search on products terms. But I want to have classifications
facets for those results (ideally as a nested tree).
I have no clue of the solution. Could anyone telle me if this is possible ?
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.