Re: Learning Lucene from ground up

2022-11-05 Thread MyCoy Z
I just started learning Lucene HNSW source code last months. I find the most effective way is to start with the testcases, set debugging break points in the code you're interested in, and walk through the code Regards MyCoy On Fri, Nov 4, 2022 at 9:24 PM Rahul Goswami wrote: > Hello, > I have

RE: Efficient sort on SortedDocValues

2022-11-05 Thread Solodin, Andrei (TR Technology)
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 am still wondering why it's not possible to iterate in the field older. Seems like that would provide substantial impr

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: Saturday

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