elasticsearch - elasticsearch client ResponseException - 找不到 id 的搜索上下文 (search_context_missing_exception)
问题描述
我正在使用具有默认集群配置的弹性搜索 6.8.4。当我执行 gremlin 查询时,我收到如下错误:
"message": "method [POST], host [http://es03:9200], URI [/_search/scroll], status line [HTTP/1.1 404 Not Found]\n{\"error\":{\"root_cause\":[{\"type\":\"search_context_missing_exception\",\"reason\":\"No search context found for id [36001442]\"}
是什么导致了这个问题?
解决方案
Using the below configuration in elastic search indexing for Janusgraph
index.search.elasticsearch.create.ext.number_of_shards=5
index.search.elasticsearch.create.ext.number_of_replicas=2
index.search.elasticsearch.scroll-keep-alive=600
index.search.elasticsearch.setup-max-open-scroll-contexts=2000
推荐阅读
- c++ - 如果在此代码中分配失败,内存会泄漏吗?
- php - 从 php 调用 ImageMagick 会产生“UnableToOpenModuleFile”
- c++ - 为什么当我在向量中输入相同的元素时向量会调整其大小
- prolog - 使用 prolog 在树中从通用开始和结束节点进行路径搜索
- google-apps-script - 在谷歌表格中将单元格范围从一张纸复制到另一张纸
- node.js - Discord.js 负载平衡多重响应
- github - 使用 git-lfs 存储的笔记本的 Google Colab 徽章
- reactjs - 在 GraphQL 中,如何创建一个不区分大小写的查询,用于在搜索栏中查找名称?
- android - 我应该在 MainActivity 中创建一个 ViewModel 以便将 MutableLiveData 与 NavigationDrawer 一起使用吗?
- optimization - 将集合和索引定义为别名时出错