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

TermRangeQuery with empty string lower bound edge case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • trunk, 8.6.3
    • 8.7
    • core/search
    • None
    • New

    Description

      Currently a TermRangeQuery with the empty String ("") as lower bound and includeLower=false leads internally constructs an Automaton that doesn't match anything. This is unexpected expecially for open upper bounds where any string should be considered to be "higher" than the empty string.

      I think "Automata#makeBinaryInterval" should be changed so that for an empty string lower bound and an open upper bound, any String should match the query regardless or the includeLower flag.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cbuescher Christoph B├╝scher
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h