> On 3 Dec 2020, at 20:18, Shawn Heisey <apa...@elyograg.org> wrote:
> 
> On 12/3/2020 9:55 AM, Jae Joo wrote:
>> Is there any way to apply facet to the partial search result?
>> For ex, we have 10m return by "dog" and like to apply facet to first 10K.
>> Possible?
> 
> The point of facets is to provide accurate numbers.
> 
> What would it mean to only apply to the first 10K?  If there are 10 million 
> documents in the query results that contain "dog" then the facet should say 
> 10 million, not 10K.  I do not understand what you're trying to do.
> 

Maybe sampling? I’m not aware of a built-in way to do that. But you could index 
a random float between, say 0 and 100 and then filter out a sample by filtering 
for number<X to keep only X% of the data set.

Or maybe you’d think that faceting on 10K would be enough (e.g. if you don’t 
need the numbers, just some unique values). But I really don’t see a good 
solution to that - you’d have to terminateEarly and do faceting somehow…

Best regards,
Radu

Reply via email to