lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Commented] (SOLR-3652) Range Faceting will infinite loop if gap is too small relative to lower bounds of range (underflow occurs on add)
Date Wed, 25 Jul 2012 05:04:35 GMT


Hoss Man commented on SOLR-3652:

Nicholas: If you are working with ancient dates, double doesn't really make sense -- i would
suggest using a "long" representing whatever precision you care about (year, day, minute,
millisecond ... even at millisecond granularity you can go as far back as Dec 02, 292269055

FWIW: not many people i've talked to in the past have ever really cared about indexing years
prior to 1AD and doing anything meaningful with them, but if you are interested in faceting
dates going back that far, and being able to use DateField and DateMath, contributions to
SOLR-2773 would certainly be appreciated.  (There's already a test demonstrating the problems,
we just need someone to help write the code)
> Range Faceting will infinite loop if gap is too small relative to lower bounds of range
(underflow occurs on add)
> -----------------------------------------------------------------------------------------------------------------
>                 Key: SOLR-3652
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0-ALPHA, 3.6.1
>         Environment: OSX Lion, Macbook Pro, 8GB Ram
>            Reporter: Nicholas Jakobsen
>            Assignee: Hoss Man
>              Labels: facet, range
>             Fix For: 4.0, 5.0
>         Attachments: SOLR-3652.patch
> Executing the following query will lock up the java process running solr.
> facet=true&facet.range=item_search__creation_event_facet_range_ftm&f.item_search__creation_event_facet_range_ftm.facet.range.start=100000000000.0&f.item_search__creation_event_facet_range_ftm.facet.range.end=100000086200.0&
> But decreasing the size of the min and max works fine
> facet=true&facet.range=item_search__creation_event_facet_range_ftm&f.item_search__creation_event_facet_range_ftm.facet.range.start=10000000000.0&f.item_search__creation_event_facet_range_ftm.facet.range.end=10000086200.0&
> And so does increasing the range gap
> facet=true&facet.range=item_search__creation_event_facet_range_ftm&f.item_search__creation_event_facet_range_ftm.facet.range.start=100000000000.0&f.item_search__creation_event_facet_range_ftm.facet.range.end=100000086200.0&

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message