Commit 8a4c342
committed
Add sort optimization with after from Lucene
Lucene 8.7 introduces numeric sort optimization directly in comparators.
This means we don't need to have it in ES.
This removes the sort optimization code in ES, and
the only thing that is needed is setCanUsePoints on sortField.
This also will introduce sort optimization with search_after,
as Lucene directly suports sort optimization with search_after.1 parent 57bd64a commit 8a4c342
File tree
5 files changed
+147
-455
lines changed- server/src
- main/java/org/elasticsearch/search
- internal
- query
- test/java/org/elasticsearch/search/query
- test/framework/src/main/java/org/elasticsearch/test
5 files changed
+147
-455
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
198 | | - | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
0 commit comments