Re: Question abount combining InvertedIndex and SortField

2020-01-01 Thread 小鱼儿
Hi, Mikhail Your words is very encouraging. I was thinking i might need to do another Lucene custom query to apply my business-specific "index-only sort" and "early-termination"... SortField API says can use any numeric/String field, which is very perfect. (In this way, Lucene should be able to a

Re: Question abount combining InvertedIndex and SortField

2019-12-31 Thread Mikhail Khludnev
Hello, 小鱼儿. On Tue, Dec 31, 2019 at 6:32 AM 小鱼儿 wrote: > 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 s

Question abount combining InvertedIndex and SortField

2019-12-30 Thread 小鱼儿
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 Opti