[
https://issues.apache.org/jira/browse/SOLR-8998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16447002#comment-16447002
]
Mikhail Khludnev commented on SOLR-8998:
----------------------------------------
[~osavrasov], I'd like to challenge the the following statement
bq. Unfortunately definition like {{facet: \{ productsCount:
"unique(\_root_)"}}} assumes iterating one by one through all the facet values
and creating appropriate docset for each of them.
if we just add {{limit:-1}}
[here|https://github.com/apache/lucene-solr/blob/8f296d0ccf82174f9c612920ce25b928196a1fa8/solr/core/src/java/org/apache/solr/search/facet/FacetFieldProcessor.java#L150]
{{unique()}} is added as {{FacetFieldProcessor.collectAcc}} see comment above
(otherwise it goes to {{FacetFieldProcessor. deferredAggs}}), then it's
[notified on every
doc|https://github.com/apache/lucene-solr/blob/8f296d0ccf82174f9c612920ce25b928196a1fa8/solr/core/src/java/org/apache/solr/search/facet/FacetFieldProcessorByArrayDV.java#L330].
What about introducing {{uniqueBlock(\_root_)}} as an extension of
{{UniqueSlotAcc}} having {{acc}} as array of tuples of counter and last seen
deduplicating value?
> JSON Facet API child roll-ups
> -----------------------------
>
> Key: SOLR-8998
> URL: https://issues.apache.org/jira/browse/SOLR-8998
> Project: Solr
> Issue Type: New Feature
> Components: Facet Module
> Reporter: Yonik Seeley
> Priority: Major
> Attachments: SOLR_8998.patch, SOLR_8998.patch, SOLR_8998.patch
>
>
> The JSON Facet API currently has the ability to map between parents and
> children ( see http://yonik.com/solr-nested-objects/ )
> This issue is about adding a true rollup ability where parents would take on
> derived values from their children. The most important part (and the most
> difficult part) will be the external API.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]