Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5345

range facets don't work with float/double fields

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.7, 6.0
    • modules/facet
    • None
    • New

    Description

      With LUCENE-5297 we generalized range faceting to accept a ValueSource.

      But, when I tried to use this to facet by distance (< 1 km, < 2 km, etc.), it's not working ... the problem is that the RangeAccumulator always uses .longVal and assumes this was a double encoded as a long (via DoubleField).

      Attachments

        1. LUCENE-5345.patch
          5 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: