Fix double counts when count is executed on two aliases pointing to the same index
This commit is contained in:
parent
aa9730834f
commit
bc6d9c19e8
|
@ -177,13 +177,14 @@ public class MetaData implements Iterable<IndexMetaData> {
|
|||
for (String index : indices) {
|
||||
if (!this.indices.containsKey(index)) {
|
||||
possiblyAliased = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!possiblyAliased) {
|
||||
return indices;
|
||||
}
|
||||
|
||||
ArrayList<String> actualIndices = Lists.newArrayListWithCapacity(indices.length);
|
||||
Set<String> actualIndices = Sets.newHashSetWithExpectedSize(indices.length);
|
||||
for (String index : indices) {
|
||||
String[] actualLst = aliasAndIndexToIndexMap.get(index);
|
||||
if (actualLst == null) {
|
||||
|
|
Loading…
Reference in New Issue