问题标签 [eland]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 如何在 elasticsearch eland 中搜索精确索引(不是索引模式)?
我正在使用 eland 调用弹性搜索数据。文档很简单,我能够实现它,但是在搜索它搜索的索引时,它es_index_pattern
基本上是一个通配符索引字符串。
我必须手动输入错误消息,因为我无法将错误复制到我正在使用的环境之外。另外,我的主机和端口会有所不同
我认为这elasticsearch
能够得到结果,因为它调用了确切的索引名称,因此不会遇到超时。但是,Eland
宁可将es_index_pattern
其my_index
用作通配符 ie *my_index
,因此我必须遇到ReadTimeOutError
.
我查看了源代码,看看是否有什么我能做的,所以它没有将索引作为模式搜索,而是完全匹配。但是,我看不到在文档和源代码中搜索确切索引的选项。
如何在 Eland 中搜索准确的索引字符串?
资料来源:
python - 如何在 elasticsearch eland 中搜索精确索引(不是索引模式) - 已更新?
我正在使用 eland 调用弹性搜索数据。文档很简单,我能够实现它,但是在搜索索引时,它使用的索引字符串es_index_pattern
基本上是一个通配符(它也在文档中说明)。
我必须手动输入错误消息,因为我无法将错误复制到我正在使用的环境之外。另外,我的主机和端口会有所不同
我认为通过搜索elasticsearch
能够获得结果,因为它调用了确切的索引名称,因此不会遇到超时。
但是,Eland
宁可将es_index_pattern
其my_index
用作通配符 ie *my_index*
,因此我必须遇到ReadTimeOutError
.
我查看了源代码,看看是否有什么我能做的,所以Eland
没有将索引作为模式搜索,而是完全匹配。但是,我看不到在文档和源代码中搜索确切索引的选项。
如何在 Eland 中搜索准确的索引字符串?
资料来源: