lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Commented] (SOLR-2523) SolrJ QueryResponse doesn't support range facets
Date Sun, 12 Jun 2011 14:04:51 GMT


Yonik Seeley commented on SOLR-2523:

bq. For example when dealing with last facet count 

I had thought that "end" would deal with this... but it's actually the start of the last range.

bq. or when not all facets are returned and the next facet is a few gaps ahead

Ah, right - I hadn't considered mincount>0

I'm not a date-math expert, but is there a problem with using the gap w/o having to parse
it (i.e. can we always append it?)
manufacturedate_dt:[2007-02-13T15:26:37Z TO 2007-02-13T15:26:37Z+1YEAR]

If the date stuff is too hard to use, we should consider making the interface easier for all
clients instead of just trying to deal with the consequences only in SolrJ. 

> SolrJ QueryResponse doesn't support range facets
> ------------------------------------------------
>                 Key: SOLR-2523
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>            Reporter: Martijn van Groningen
>            Assignee: Martijn van Groningen
>            Priority: Trivial
>             Fix For: 3.3, 4.0
>         Attachments: SOLR-2523.patch, SOLR-2523.patch
> It is possible to get date facets and pivot facets in SolrJ.
> {code:java}
> queryResponse.getFacetDate();
> queryResponse.getFacetPivot();
> {code}
> Having this also for range fields would be nice. Adding this is trivial. Maybe we should
deprecate date facet methods in QueryResponse class? Since it is superseded by range facets.
Also some set / add / remove methods for setting facet range parameters on the SolrQuery class
would be nice.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message