Commit 8fe701c
authored
SkipBlockRangeIterator should report docCount as its cost (#16352)
Currently it returns DocIdSetIterator.NO_MORE_DOCS, meaning that it
will compare as more costly to almost any other iterator and never
be used to drive iteration in conjunctions, even against expensive
two-phase queries that report max_doc as their cost.1 parent 38c1036 commit 8fe701c
3 files changed
Lines changed: 9 additions & 1 deletion
File tree
- lucene
- core/src
- java/org/apache/lucene/search
- test/org/apache/lucene/search
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
0 commit comments