On Thu, Dec 16, 2021 at 5:57 PM Greg Miller <[email protected]> wrote:
>
> This is separate from adding hierarchical support. I'm probably not
> communicating the current state well, but here's where SSDV faceting
> does ordinal lookups:
> https://github.com/apache/lucene/blob/c64e5fe84c4990968844193e3a62f4ebbba638ea/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java#L148
>
> So this is done for every returned value, which as you describe,
> scales with the requested top-n. For getAllDims, this logic is
> executed for every dimension.
>
> I don't think these lookups are avoidable since we provide the path
> for each returned value, and in order to get the path, we need to
> dereference the ordinal.
>
OK I get it. I think the strangeness (compared to e.g. solr faceting)
is that we're mixing ordinals from different fields ("dims") all into
one DV field? And then we have a trappy method to do top-N for all
possible dims in this single packed field (what if there are
thousands???).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]