gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 22:30:41 25 4
gpt4 key购买 nike

我需要针对一组标签和一个或多个树路径来索引文档。

如何将path_hierarchy与Python ES API结合使用,以便能够通过对路径层次结构进行过滤来获取结果?

this is a NEST partial answer

allusion made to parent-child here

最佳答案

您为什么不使用Path Hierarchy Tokenizer

似乎是您描述层次结构的解决方案。

关于python - 如何使用python在Elastic Search中索引路径/树?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40763638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com