Your use case is somewhat special in that it involves 10 fields. With that
many nested facets the JSON facet API may or may not outperform streaming
rollups. For most other cases JSON facet API will outperform rollups.
Joel Bernstein
http://joelsolr.blogspot.com/
On Wed, Oct 17, 2018 at 11:21
Thanks a lot Joel. This makes sense but in my use case, I am aggregating 10
fields but it is performing 2x better than the facet streaming.
On Wed, Oct 17, 2018 at 6:56 PM Joel Bernstein wrote:
> They are very different.
>
> The "facet" expression sends a request to the JSON facet API which push
They are very different.
The "facet" expression sends a request to the JSON facet API which pushes
the aggregation into the search engine. In most scenarios this is the
preferred method because it only streams aggregated results. I would always
try the "facet" expression first before going to roll