gpt4 book ai didi

php - ongr.io的ElasticSearchBundle是否可以进行多索引搜索?

转载 作者:行者123 更新时间:2023-12-02 23:28:21 25 4
gpt4 key购买 nike

我正在研究ongr.io的ElasticSearchBundle,但是找不到执行多索引搜索或查询的方法。我是否正在忽略某些东西,或者只是不可能(尚未)?

根据文档,您在configuration中指定要使用的索引,而不是performing the search时。

最佳答案

您可以为多索引搜索目的创建单独的管理器,并定义由逗号分隔的索引名称。

connections:
default:
hosts:
- 127.0.0.1:9200
index_name: "firstIndex,secondIndex"

关于php - ongr.io的ElasticSearchBundle是否可以进行多索引搜索?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39997656/

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