[
https://issues.apache.org/jira/browse/SOLR-10246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16023730#comment-16023730
]
Vitaly Lavrov edited comment on SOLR-10246 at 5/24/17 9:45 PM:
---------------------------------------------------------------
Yes, it is possible with Json facet api. Request (json facet part) looks like
this:
{code:language=java}
"facet" : {
"availabledates" : {
"field" : "departuredate",
"type" : "terms",
"limit" : 100,
"facet" : {
"card" : "hll(accommodationid)"
}
}
}
{code}
In the example, term facet is calculated for the date field (departuredate) and
then _hll_ function is used to get the number of unique values for
accommodationid field for each date bucket. And this is indeed equivalent of
grouped facet.
was (Author: lavrovvv):
Yes, it is possible with Json facet api. Request (json facet part) looks like
this:
{code:language=java}
"facet" : {
"availabledates" : {
"field" : "departuredate",
"type" : "terms",
"limit" : 100,
"facet" : {
"card" : "hll(accommodationid)"
}
}
}
{code}
> Support grouped faceting for date field type
> --------------------------------------------
>
> Key: SOLR-10246
> URL: https://issues.apache.org/jira/browse/SOLR-10246
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Vitaly Lavrov
>
> According to documentation "Grouped faceting supports facet.field and
> facet.range but currently doesn't support date and pivot faceting".
> Are there any plans to support dates?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]