lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <>
Subject Re: Recommendation for doing a search plus collecting extra information?
Date Tue, 06 Mar 2018 03:15:42 GMT
I did some experiments.

As it turns out, changing SortedNumericSortField to SortField had no
effect on the timings at all.
However, changing the SortField.Type from LONG to INT makes queries
come back 3 times faster.
(20ms vs. 6.5ms comparing the fastest runs for each.)

Why would using int be 3 times faster, and not 2?

(And repeating from the last mail, is there a way to use less memory?)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message