mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
Fix search shards count method when targeting concrete and routing-aliased indices
This commit is contained in:
parent
28e867b5c1
commit
8e137b1450
@ -130,6 +130,10 @@ public class PlainOperationRouting extends AbstractComponent implements Operatio
|
||||
// we might get duplicates, but that's ok, its an estimated count? (we just want to know if its 1 or not)
|
||||
set.add(indexShard.shardId());
|
||||
}
|
||||
} else {
|
||||
for (IndexShardRoutingTable indexShard : indexRouting) {
|
||||
set.add(indexShard.shardId());
|
||||
}
|
||||
}
|
||||
}
|
||||
return set.size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user