lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-3652) Range Faceting can't handle large bounds in some situations
Date Tue, 24 Jul 2012 19:53:34 GMT

     [ https://issues.apache.org/jira/browse/SOLR-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hoss Man updated SOLR-3652:
---------------------------

    Affects Version/s: 4.0-ALPHA
                       3.6.1
        Fix Version/s: 4.0
             Assignee: Hoss Man

Trivial to reproduce in the example (even with an empty index)

Works fine...

These (small gap w/ long and double) work fine...

* http://localhost:8983/solr/select?q=*:*&facet=true&facet.range=foo_l&facet.range.start=100000000000&facet.range.end=100000086200&facet.range.gap=2160
* http://localhost:8983/solr/select?q=*:*&facet=true&facet.range=foo_d&facet.range.start=100000000000&facet.range.end=100000086200&facet.range.gap=2160

This (small gap w/ int) fails fast as expected because the value is too big to parse...

* http://localhost:8983/solr/select?q=*:*&facet=true&facet.range=foo_i&facet.range.start=100000000000&facet.range.end=100000086200&facet.range.gap=21600

* this (small gap w/ float) seems to go into an infinite loop...

http://localhost:8983/solr/select?q=*:*&facet=true&facet.range=foo_f&facet.range.start=100000000000&facet.range.end=100000086200&facet.range.gap=2160

...i'm pretty sure the problem is that we aren't checking for float/double underflow and adding
the small gap to the large start value is equivilent to adding a gap of "0"  (Which is evidently
also a problem ... facet.range.gap=0 isn't throwing an exception either)
                
> Range Faceting can't handle large bounds in some situations 
> ------------------------------------------------------------
>
>                 Key: SOLR-3652
>                 URL: https://issues.apache.org/jira/browse/SOLR-3652
>             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
>
>
> 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&f.item_search__creation_event_facet_range_ftm.facet.range.gap=2160.0&q=%2A%3A%2A
> 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&f.item_search__creation_event_facet_range_ftm.facet.range.gap=2160.0&q=%2A%3A%2A
> 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&f.item_search__creation_event_facet_range_ftm.facet.range.gap=21600.0&q=%2A%3A%2A

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message