问题标签 [elasticsearch-dsl]
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_dsl (Python) 时如何指定文档类型?同样,如何指定几个索引?
我想创建这个例子
使用 Python 的 elasticsearch_dsl。
好的,这指定了主机、端口和索引。
但是如何指定文档类型是“产品”?似乎 Search() 函数中应该有一个参数。
类似的问题,假设我想运行相同的查询,但我希望它在索引“my_store”和“her_store”上运行。我该如何指定?
python - 如何在elasticsearch-dsl python中选择特定字段
我正在使用 elasticsearch dsl 搜索 elasticsearch:https ://elasticsearch-dsl.readthedocs.org/en/latest/
如何在进行搜索查询时过滤特定字段:
我知道它在弹性搜索中受支持: https ://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-request-fields.html
只是不知道如何在 Elasticsearch-dsl 中做同样的事情
python - 如何在 elasticsearch-dsl python 中启用 track_scores
我正在使用 elasticsearch dsl 搜索 elasticsearch:https ://elasticsearch-dsl.readthedocs.org/en/latest/
如何为查询启用 track_scores ?
我知道它在弹性搜索中受支持:https ://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html#_track_scores
只是不知道如何在 Elasticsearch-dsl 中做同样的事情
elasticsearch - 具有日期比较和计算的弹性搜索聚合
嗨,我对弹性搜索有点陌生。我需要使用日期比较和动态范围过滤器进行聚合。
就像我需要在 created_at 文档比他们的 Identification_date 早 1 周时获取文档计数。
所以我尝试了这样的事情,但我的日期参数似乎未使用,实际上改变它永远不会改变我的结果。
感谢您花时间提供帮助。
python - 在 python 中将弹性搜索查询转换为 Elasticsearch-dsl
这是一个简单的弹性搜索查询。我必须使用弹性搜索 dsl 模块将其转换为 python 代码。
这是我用的
python - 如何在 elasticsearch-dsl-py 中获取 aggs
如何获得聚合结果?
我的代码是:
尝试此操作时,我收到以下错误:
sorting - Elasticsearch 没有对结果进行排序
我在使用弹性搜索查询时遇到问题。我希望能够对结果进行排序,但 elasticsearch 忽略了排序标签。这是我的查询:
但是,当我删除查询部分并仅发送排序标签时,它可以工作。谁能指出我正确的方法?
我还尝试了以下查询,这是我拥有的完整查询:
设置
映射
提前致谢!
elasticsearch - 如何在elasticsearch中对多值字段进行桶聚合
假设我的弹性搜索索引中的每个文档都是一篇博客文章,它只包含两个字段,标题和标签。标题字段只是一个字符串,而标签是一个多值字段。
如果我有三个这样的文件:
我想按所有可能标签的唯一值进行存储,但是如何获得如下结果,其中包含存储桶中的三个项目。或者有没有有效的替代方案?
如果有人可以在 elasticsearch python API 中提供答案,那就太好了。
python - 从 Elasticsecrch-dsl-py 中删除默认的“match_all”查询
如何从以下查询中删除“match_all”:
python - How i build Dynamicx queries elasticsearch_dsl python
I have the following problem with the elasticsearch_dsl python library.
I am developing a web application (DJANGO framework) with search functionality. I want to build a dynamic query, must mode.
So here it is the following code
Python returns exceptions.TypeError
I have already the documentation of elasticsearch_dsl but i didn't find something like my issue. Do you know the way how i fix this problem?