OpenSearch/docs/reference/modules
Luca Cavanna a1a49f201d Tie break search shard iterator comparisons on cluster alias (#38853)
`SearchShardIterator` inherits its `compareTo` implementation from `PlainShardIterator`. That is good in most of the cases, as such comparisons are based on the shard id which is unique, even when searching against indices with same names across multiple clusters (thanks to the index uuid being different). In case though the same cluster is registered multiple times with different aliases, the shard id is exactly the same, hence remote results will be returned before local ones with same shard id objects. That is because remote iterators are added before local ones, and we use a stable sorting method in `GroupShardIterators` constructor.

This PR enhances `compareTo` for `SearchShardIterator` to tie break on cluster alias and introduces consistent `equals` and `hashcode` methods. This allows to remove a TODO in `SearchResponseMerger` which otherwise has to handle this special case specifically. Also, while at it I added missing tests around equals/hashcode and compareTo and expanded existing ones.
2019-02-16 09:41:03 +01:00
..
cluster Periodically try to reassign unassigned persistent tasks (#36069) 2018-12-13 09:15:27 +00:00
discovery Align docs etc with new discovery setting names (#38492) 2019-02-06 11:34:38 +00:00
indices Remove `include_type_name` in asciidoc where possible (#37568) 2019-01-18 09:34:11 +01:00
scripting Remove more include_type_name and types from docs (#37601) 2019-01-18 14:11:18 +01:00
cluster.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
cross-cluster-search.asciidoc Tie break search shard iterator comparisons on cluster alias (#38853) 2019-02-16 09:41:03 +01:00
discovery.asciidoc [DOCS] Adds overview and API ref for cluster voting configurations (#36954) 2019-01-07 09:11:14 -08:00
gateway.asciidoc [Docs] Remove repeating words (#33087) 2018-08-28 13:16:43 +02:00
http.asciidoc Docs: Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...' (#33744) 2018-09-17 15:35:54 -04:00
indices.asciidoc [Docs] Add `indices.query.bool.max_clause_count` setting (#34779) 2018-10-25 17:59:59 +02:00
memcached.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
ml-node.asciidoc [DOCS] Cleans up xpackml attributes 2019-01-07 14:33:10 -08:00
network.asciidoc Align docs etc with new discovery setting names (#38492) 2019-02-06 11:34:38 +00:00
node.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
plugins.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
remote-clusters.asciidoc Update transport docs and settings for changes (#36786) 2018-12-18 13:09:58 -07:00
scripting.asciidoc [DOCS] Added Painless Language Spec content 2017-05-16 12:46:56 -07:00
snapshots.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
threadpool.asciidoc Add a `_freeze` / `_unfreeze` API (#35592) 2018-11-20 08:03:24 +01:00
thrift.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
transport.asciidoc [DOCS] Various spelling corrections (#37046) 2019-01-07 14:44:12 +01:00