lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 小鱼儿 <ctengc...@gmail.com>
Subject Question abount combining InvertedIndex and SortField
Date Tue, 31 Dec 2019 03:32:04 GMT
Assume i first use keyword search to get a DocIDSet from inverted index,
then i want to sort these docIds by some numeric field, like a
`updateTime`, does Lucene do this without need of loading the Document
objects but only with an sorted index on `updateTime`? Which i call it
"Index-Only Sort Optimization" (MUST be some equal concepts in RDBMS?)

And since Lucene has a `SortField` API, what does it do the sort? I thought
SortField is just a post-processing...

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message