Ok,
I’m surprised with the difference of speed between DV and stream, the same query (aggregate 7M unique keys) with stream method takes 21s and with DV is about 3 minutes ... —/Yago Riveiro On Tue, Dec 22, 2015 at 1:46 AM, Yonik Seeley <ysee...@gmail.com> wrote: > On Mon, Dec 21, 2015 at 6:56 PM, Yago Riveiro <yago.rive...@gmail.com> wrote: >> The json facet API method "stream" uses the docvalues internally for do the >> aggregation on the fly? >> >> I wan't to know if using this method justifies have the docvalues configured >> in schema. > It won't use docValues for the actual field being faceted on (because > streaming in term order means that it's most efficient to use the term > index and not docValues to find all of the docs that match a given > term). > It will use docValues for sub-facets/stats. > -Yonik