On 09/12/2014 17:10, Michael Marth wrote:
> ...
>
> The use cases problematic case for counting the facets I have in mind are 
> when a query returns millions of results. This is problematic when one wants 
> to retrieve the exact size of the result set (taking ACLs into account, 
> obviously). When facets are to be retrieved this will be an even harder 
> problem (meaning when the exact number is to be calculated per facet).
> As an illustration consider a digital asset management application that 
> displays mime type as facets. A query could return 1 million images and, say, 
> 10 video.
>
> Is there a way we could support such scenarios (while still counting results 
> per facet) and have a performant implementation?
>
We can opt for ACL-Checking/Parsing at most X (let's say 1000) nodes. If
we're done within it, then we can output the actual number. In case
after 1000 nodes checked we still have some left we can leave the number
either empty or with something like "many", "+", or any other fancy way
if we want.

In the end is the same approach taken by Amazon (as Tommaso already
pointed) or for example google. If you run a search, their facets
(Searches related to...) are never with results.

D.




Reply via email to