首页 > 解决方案 > 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]\"}

是什么导致了这个问题?

标签: elasticsearchjanusgraphgremlin-server

解决方案


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

推荐阅读