Hi Uwe,
I forgot to update on this - and since the thread is now a bit old, I
won't rake it up again - but there was indeed a nice performance gain
from the change to DocValues. The total search time went down from the
mentioned 330ms to about 190ms.
I actually have to look at other performa
Thanks Uwe,
I was able to rewrite my code with just a few changes to use
StraightByteRefDocValuesField for the field with 9 bytes and a
PackedLongDocValuesField for the timestamps.
The 9 bytes are actually a 1 byte type-identifier, 4 bytes for the topic
id and another 4 bytes for the reply i
IndexReader.document() is documented to be used only for presenting search
results. Fetching the document for every possible hit while scoring is the
performance killer (it is funny that your query only takes 300 ms, maybe the
SSD).
The correct solution is to use the new field type DocValues, wh