Hi, I would like to know if there are any limitat...
# community-help
i
Hi, I would like to know if there are any limitations when it comes to faceted float fields and the
stats
parameter (sum in particular). Sample use case: An
invoice
collection and a facet on the
invoice_total
- would it be possible to use the
stats
field to get the sum of all invoices (~20k documents) - and what are the trade-offs / limitations with this? I notice a parameter called
sampled
which is currently False - is this relevant?
j
You can indeed use facet_by on numeric fields like you've described. There are no limitations to this
👍 1
sampled
is true when you use the
facet_sample_percent
or
facet_sample_threshold
i
Thanks
👍 1