Wittenberg, Lucas <lucas.wittenb...@capgemini.com.INVALID> wrote: > As suggested I switched to using DocValues and SortedDocValues. > Now QTime is down to an average of 1100, which is much, much better > but still far from the 30 I had with SOLR 4. > I suppose it is due to the block-oriented compression you mentioned.
I apologize for being unclear: Only stored fields are block compressed in Solr 7. doc values for string fields are ... well, also compressed, but in much smaller blocks (prefix compression as far as I remember) and each string field separately, so they should be very fast to access. 1100 ms for Solr 7 vs. 30 ms for Solr 4 sounds like a huge difference. You don't by chance use a fully merged (aka "optimized") index? Doc values in Solr 7 can (very counter-intuitively) suffer from that for some access patterns. Maybe you are doing something sub-optimal like calling DocValues.getSorted for each collect call? Could you share your code somewhere? - Toke Eskildsen