Author here. Yes, the search bar is nice already, and the performance is good enough for most use cases. Fun fact, javadoc's search is O(n), Docland uses binary search so it's O(log2n). That's why the search bar in the official java.base documentation is noticeably laggy.
The real benefit of customizing search is custom ranking and filtering logic. Docland sorts the search results by relevance (matching prefix length and casing) and dedupes overloads. In my (possibly biased) opinion it's easier to use.
Re:
by davidalayachew on Sunday May 26, 2024 @07:58PM
(#40486404)
> Author here. Yes, the search bar is nice already, and the performance is good enough for most use cases.
Agreed. If you do have performance improvements in mind, I would recommend you bring them up to the Javadoc jdk team. They would definitely take a look if you can point out a faster solution.
https://openjdk.org/projects/javadoc-next/
> That's why the search bar in the official java.base documentation is noticeably laggy.
On my $400 laptop from 2020, I have a response time of <= 0.25 seconds. Are you seeing something different?
Re:
by refulgentis on Sunday May 26, 2024 @11:57PM
(#40487440)
I don't see a search bar, and as long as they might be looking at this thread, something strange is going on, everything is sized absurdly small, as if its rendering my HiDPI* display at 1x
* Retina, MBP 14"
Re:
by davidalayachew on Monday May 27, 2024 @05:06PM
(#40494704)
Javadoc already gives you an extremely fast search index and search bar. Granted, it's only in the newest versions of Java.