【发布时间】:2017-03-07 11:16:13
【问题描述】:
为什么当我一次又一次地运行相同的查询时,文档是从主分片和副本分片中获取的。因此,我得到了不同的搜索结果。
示例响应 - 1 - 副本 “_shard”:0, "_node": "node_1", "_index": "sample_ind", "_type": "my_type", "_id": "E1", “_score”:2.9560382,
Response-2 Primary shard
"_shard": 0,
"_node": "node_2",
"_index": "sample_ind",
"_type": "my_type",
"_id": "E2",
"_score": 2.956294,
node-1 有副本分片,node-2 有主分片。当我多次运行同一个查询时,查询获取如何工作以及为什么响应来自主分片和副本分片?
【问题讨论】:
标签: search elasticsearch indexing lucene