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

Add open ended range query syntax to QueryParser

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0.0, 2.1, 2.2
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The QueryParser fails to generate open ended range queries.
      Parsing e.g. "date:[1990 TO *]" gives zero results,
      but
      ConstantRangeQuery("date","1990",null,true,true)
      does produce the expected results.

      "date:[* TO 1990]" gives the same results as ConstantRangeQuery("date",null,"1990",true,true).

        Attachments

        1. LUCENE-995.patch
          17 kB
          Michael McCandless
        2. LUCENE-995-backport-3x.patch
          9 kB
          Ingo Renner
        3. LUCENE-995.patch
          11 kB
          Yonik Seeley
        4. LUCENE-995.patch
          10 kB
          Yonik Seeley
        5. LUCENE-995_09_21_2009.patch
          94 kB
          Adriano Crestani

          Issue Links

            Activity

              People

              • Assignee:
                mikemccand Michael McCandless
                Reporter:
                jgorski Jonas Gorski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: