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

Don't pass precisionStep directly to NRQ/NRF. Instead pass the FieldType

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • New

    Description

      Currently in our Field API we use the FieldType class that contains the information about data type and stuff like the numeric precisionStep.

      Unfortunately in NumericRangeQuery/NumericRangeFilter, we still require the precisionStep given in the query. For the user this is hard to understand, leading to problems like passing a different precisionStep than the one which was used for indexing. If we change that parameter in NRQ/NRF to take FieldType, we can extract the precStep as an implementation detail. We just have to check that the field type is a numeric one and is indexed. The user cannot do anything wrong anymore, unless he creates a new, incompatible field type.

      Attachments

        Activity

          People

            uschindler Uwe Schindler
            uschindler Uwe Schindler
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: