作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在研究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/
我是一名优秀的程序员,十分优秀!