Lucene - Core
  1. Lucene - Core
  2. LUCENE-5345

range facets don't work with float/double fields

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7, Trunk
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      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).

      1. LUCENE-5345.patch
        5 kB
        Michael McCandless

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development