Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-1378

Inclusive flags swapped for numeric range queries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.0.Final
    • Fix Version/s: 4.4.0.Alpha1
    • Component/s: query
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

      Description

      A query created like this:

      builder.range().onField( "foo" ).above( 10 ).excludeLimit().createQuery();
      

      should result in this Lucene query (lower bound exclusive):

      position:{100 TO *]
      

      But it does result in this query instead:

      position:[100 TO *}
      

      The reason seems to be that in ConnectedMultiFieldsRangeQueryBuilder#createQuery() the flags are passed in the wrong order to NumericFieldUtils#createNumericRangeQuery().

        Attachments

          Activity

            People

            • Assignee:
              gunnar.morling Gunnar Morling
              Reporter:
              gunnar.morling Gunnar Morling
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: