Commit 4975f1d
I found that `rare_terms` aggregation can return **false positive**
results (some of the returned results are not real). I traced it
down and find out it's a bug in `CuckooFilter`'s merge methord.
```
if (isSetMode == false && other.isSetMode) {
other.hashes.forEach(this::add);
}
```
should be
```
if (isSetMode == false && other.isSetMode) {
other.hashes.forEach(this::addHash);
}
```
Co-authored-by: iamgd67 <[email protected]>
1 parent 6b3286f commit 4975f1d
File tree
3 files changed
+34
-1
lines changed- docs/changelog
- server/src
- main/java/org/elasticsearch/common/util
- test/java/org/elasticsearch/common/util
3 files changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
135 | 163 | | |
136 | 164 | | |
137 | 165 | | |
| |||
0 commit comments