[
https://issues.apache.org/jira/browse/SOLR-12342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510327#comment-16510327
]
Mikhail Khludnev edited comment on SOLR-12342 at 6/12/18 10:36 PM:
-------------------------------------------------------------------
It turns out that
bq. incoming bucket docset to let to exclude it
is already done under SOLR-9480 via
[domain.query|https://github.com/apache/lucene-solr/blame/23da90813cd0fd3a1d60bb886b455689a14caa6e/solr/core/src/java/org/apache/solr/search/facet/FacetProcessor.java#L163]
was (Author: mkhludnev):
It turns out that
bq. incoming bucket docset to let to exclude it
is already done under SOLR-9480 via
[https://github.com/apache/lucene-solr/blame/23da90813cd0fd3a1d60bb886b455689a14caa6e/solr/core/src/java/org/apache/solr/search/facet/FacetProcessor.java#L163|domain.query]
> what-if analysis in JSON facet
> -------------------------------
>
> Key: SOLR-12342
> URL: https://issues.apache.org/jira/browse/SOLR-12342
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Facet Module
> Reporter: Mikhail Khludnev
> Priority: Major
>
> It's literally what subfaceting (and earlier pivot facets) does. However,
> it's more complicated with you know what? Right! Block-Joins. Completely
> maked up sample follows:
> {quote}
> Giving those favoured SKUs with colours and sizes. I'd like to see sizes
> distribution (facets) depending on dominating colour per product documents.
> Eg I need to enumerate sku colours with term facet, then for every sku colour
> I want to search for products where this colour dominates - it's
> comprehensive combination of {{\{!frange}}}s, summing {{\{!parent
> score=total}} constant score queries {{^1}} and funcs like {{div()}} and
> {{sub()}} etc. Then I want to facet those new docset for sizes.
> {quote}
> h2. Proposal
> - Implicitly tag incoming bucket docset to let to exclude it via
> {{domain:\{excludeTags:[enclosing_bucket_docset]}}};
> - Implicitly inject the incoming bucket docset as a query parameter to allow
> to include it in query like {{query:"\{!frange l=10}\{!parent ..
> score=total}(\{!query v=$enclosing_bucket_docset}^1)"}}
>
> h2. Questions
> # How you gonna do something like this alternatively?
> # What about those two non-invasive improvements?
> # How to name those tags and param?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]