38得票8回答
使用Python进行Elasticsearch查询中的用户认证

我正在使用Python使用elasticsearch。我的代码看起来有点像这样:from elasticsearch import Elasticsearch if __name__ == '__main__': index="IndexPosition" ...

35得票3回答
基于Docker的Kibana无法连接到Elasticsearch

我尝试创建Kibana和Elasticsearch,但似乎Kibana无法识别Elasticsearch。以下是我的步骤:1)创建网络 docker network create mynetwork --driver=bridge 2)运行 Elasticsearch 容器 docke...

31得票2回答
如何使用Python脚本检查Elasticsearch中是否存在索引并对其进行异常处理?

如何使用Python查询检查索引是否存在?我将我的索引作为变量传递给查询,如下所示: i=int(datetime.datetime.now().strftime('%d'))+1 indextring="index" for m in range (i-10,i): d = date...

16得票3回答
如何在回环接口和非回环接口上绑定Elasticsearch 2.0?

从版本2.0开始,Elasticsearch默认仅在回环接口上绑定(在配置术语中为_local_)。 文档中指出,有一种方法可以切换到另一个网络,例如,_non_loopback_会绑定到第一个非回环接口。它可行。 但我无法弄清楚如何将这些设置组合起来,从而使Elasticsearch同时...

16得票2回答
NoMethodError(未定义方法`highlight',对于#<Elasticsearch :: Model :: Response :: Result>)

我将在我的Ruby on Rails项目中使用Elasticsearch。当我搜索文章中某些单词时,由于这些单词在文章中出现次数过多,导致出现了错误。NoMethodError (undefined method `highlight' for #&lt;Elasticsearch::Mode...

14得票2回答
Elasticsearch中best_field和most_field有什么区别?

我已经阅读了这篇文章 https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html 但是我自己无法理解。 我们有以下两个查询: 第一个问题GET blabl...

14得票3回答
寻找Elasticsearch updateByQuery语法示例(Node驱动程序)

您有一个包含两个文档的Elasticsearch索引:[ { "_index": "myIndex", "_type": "myType", "_id": "es1472002807930", "_source": { "animal": "tu...

9得票2回答
Kibana: 无法使用带有空格的正则表达式进行查询

I have a field as author Jason Pete Jason Paul Mike Yard Jason Voorhies 在Kibana 4.4中,我正在查询如下: author:/Jason.*/ 所以我获取了所有记录 Jason Pete Jason ...

9得票1回答
如何在Elasticsearch 2.0中设置_id

自从特定映射的_id字段上的path配置已被弃用(如文档here中所述), 如何在elasticsearch 2.0中为特定文档设置_id字段? (在我的特定用例中,我想使用自己的ID索引所有文档。我知道它们都是唯一的)

8得票2回答
无法从主机操作系统访问Vagrant VM中的Elasticsearch 2.0

我正在尝试在Vagrant虚拟机中运行Elasticsearch 2.0。我曾经使用的1.7方法已不再奏效,因此我试图更新我的方法。我可以在虚拟机中安装ES 2.0,并且似乎从虚拟机内部运行良好,但我无法从VM外部访问它。就像虚拟机没有端口转发9200端口一样,尽管我告诉它要这样做。所以我正在...