7得票1回答
使用Python DSL在Elasticsearch中查询数组数据类型

整数数组数据类型的查询可以有多复杂?以下是我在Python中注入数据到elasticsearch的类: class Paragraph(DocType): body = Text(analyzer="standard") published_from = Date() ...

7得票1回答
使用Elasticsearch DSL Python DocType将现有字段用作_id。

我有一个课程,在其中我试图将student_id设置为elasticsearch中的_id字段。我参考了elasticsearch-dsl文档中的persistent example。 from elasticsearch_dsl import DocType, String ELASTI...

7得票1回答
Elasticsearch多索引评分:dfs_query_then_fetch与query_then_fetch返回相同的评分

我在Elasticsearch中有多个索引(以及使用django-elasticsearch-dsl创建的Django中对应的文档)。所有的索引都有这些设置: settings = {'number_of_shards': 1, 'number_of_...

7得票3回答
如何在elasticsearch-dsl python中选择特定字段

我正在使用elasticsearch dsl在elasticsearch上进行搜索:https://elasticsearch-dsl.readthedocs.org/en/latest/ 在进行搜索查询时如何过滤特定字段: 我知道这在elasticsearch中是支持的:https://...

7得票1回答
更新到Elasticsearch 2.3后无法定位嵌套的地理点。

我们使用AWS托管的Elasticsearch服务,最近从1.5升级到了2.3。我们在Python中使用elasticsearch-dsl包构建查询,并成功地迁移了大多数查询,但是无论我尝试什么都无法解决geo_distance的问题。 映射: { 'company': {...