如何使用python在Elastic Search中索引路径/树?

问题描述:

我需要根据一组标签和一个或多个树形路径来索引文档。如何使用python在Elastic Search中索引路径/树?

如何使用path_hierarchy与Python ES API通过对Path层次结构进行过滤来获取结果?

this is a NEST partial answer

allusion made to parent-child here

你为什么不使用Path Hierarchy Tokenizer

看起来像你的解决方案来描述一个层次结构。