Skip to content

Sharding

Matt Davis edited this page Apr 19, 2022 · 1 revision

Faceting with Sharding

When sharding is enabled and when a facet contains more values then are returned, counts will represent a lower bound. Each facet will also contains a max error for the count. The count + max_error equals the upper bound for the count. To reduce the error, set shard facets (setTopNShard in Java Client) higher than its default of 10 x topN or to -1 to request all for an exact count. This will request more results from each shard but not return them to the client.

Clone this wiki locally