How to store tree data in a Lucene/Solr/Elasticsearch index or a NoSQL db?

前端 未结 4 1422
别跟我提以往
别跟我提以往 2020-12-03 05:26

Say instead of documents I have small trees that I need to store in a Lucene index. How do I go about doing that?

An example node in the tree:

class          


        
4条回答
  •  失恋的感觉
    2020-12-03 06:27

    This requirement and the solution is captured here: Proposal for nested docs

    This design was subsequently implemented both by core Lucene and Elastic Search. The BlockJoinQuery is the core Lucene implementation and Elastic Search look to have an implementation as outlined here: Elastic search nested docs

提交回复
热议问题