RE: [EXT] Re: Efficient sort on SortedDocValues

2022-11-07 Thread Solodin, Andrei (TR Technology)
competitive scores and so one. On Sun, Nov 6, 2022 at 1:35 AM Solodin, Andrei (TR Technology) wrote: > One more thing. While the test case passes now, it still iterates in > index order. Which means that it still collects ~6.4K docs out of 10k matches. > This is an improvement, but I

RE: Efficient sort on SortedDocValues

2022-11-05 Thread Solodin, Andrei (TR Technology)
ntial improvement. From: Solodin, Andrei (TR Technology) Sent: Saturday, November 5, 2022 5:18 PM To: java-user@lucene.apache.org Subject: RE: Efficient sort on SortedDocValues I just realized that the problem is that the field needs to be indexed as well. Now it works. But I noticed that this only

RE: Efficient sort on SortedDocValues

2022-11-05 Thread Solodin, Andrei (TR Technology)
I just realized that the problem is that the field needs to be indexed as well. Now it works. But I noticed that this only works in Lucene 9. Does not work in Lucene 8 (specifically 8.11.2). This must be new functionality in Lucene 9? Thanks From: Solodin, Andrei (TR Technology) Sent

Efficient sort on SortedDocValues

2022-11-05 Thread Solodin, Andrei (TR Technology)
Hello Lucene community, while looking into how to efficiently sort on a field value, I came across a couple of things that I don't quite understand. My assumption was that if I execute a search and sort on a SortedDocValues field, lucene would only iterate over the docs in the order of the field