and I design mapping in my index like that. My purpose here is category have child category, and in each category has its own product. Can i design like that or any suggestion for doing that? when I tried to put some data with relation category and parent it show exception: "DocValuesField "categoryRelations#category" appears more than once in this document (only one value is allowed per field)".
indeed, you cannot self join. If each product would contain the category it is in as an array (aka a multivalue), would that work as well? You might want to take a look at the path hierarchy tokenizer
Thanks for your support. I will make your solution clearly. You mean that i will add one field to product that contains all category tree that product is belong to? Is that what you mean. 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.