elastic/elasticsearch

CompletionSuggester can return partial information (no _id and _score)

Open

#32,467 创建于 2018年7月30日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)Java (25,882 fork)batch import
:Search Relevance/Suggesters>bugTeam:Search Relevancehelp wantedpriority:normal

仓库指标

Star
 (76,700 star)
PR 合并指标
 (平均合并 2天) (30 天内合并 1,000 个 PR)

描述

We are seeing this behavior from times to times, we see a spike on invalid responses returned by the completion suggester: the options returned may be "partial". By partial response I mean that the individual hits are not provided with the usual information retrieved during the fetch_phase.

In this case only text seems to be available, _id and _score are not populated.

I'm almost sure that this happens only when a node was dropped from the cluster or during a rolling restart.

Looking at the code this behavior seems to line-up with a TODO comment in SearchPhaseController.java where a failure during the fetch phase may produce this inconsistency.

贡献者指南