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

TermRangeQuery with empty string lower bound edge case

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: trunk, 8.6.3
    • Fix Version/s: 8.7
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      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

              • Assignee:
                Unassigned
                Reporter:
                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