[
https://issues.apache.org/jira/browse/LUCENE-5298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812441#comment-13812441
]
Shai Erera commented on LUCENE-5298:
------------------------------------
In order to compile, we need to have ValueSource and FunctionValues under core/
(same package though I think?). We can also think about moving FunctionQuery
too, though that's less of an issue, as you can always test using a
CustomScoreQuery with a CustomScoreProvider which computes the score from the
ValueSource (if you're interested in a score-dependent ValueSource). And it's
quite easy to implement a MockValueSource. I agree though that we should do
that under a different issue. Is that what you had in mind?
> Allow aggregating facets by any ValueSource
> -------------------------------------------
>
> Key: LUCENE-5298
> URL: https://issues.apache.org/jira/browse/LUCENE-5298
> Project: Lucene - Core
> Issue Type: New Feature
> Components: modules/facet
> Reporter: Shai Erera
> Attachments: LUCENE-5298.patch, LUCENE-5298.patch
>
>
> Facets can be aggregated today by counting them, aggregating by summing their
> association values, or summing the scores of the documents. Applications can
> write their own FacetsAggregator to compute the value of the facet in other
> ways. Following the new expressions module, I think it will be interesting to
> allow aggregating facets by arbitrary expressions, e.g. {{_score *
> sqrt(price)}} where 'price' is an NDV field. I'd like to explore allowing any
> ValueSource to be passed in and write a ValueSourceFacetsAggregator.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]