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

Add open ended range query syntax to QueryParser

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9, 2.0.0, 2.1, 2.2
    • 3.6, 4.0-ALPHA
    • core/queryparser
    • None
    • 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_09_21_2009.patch
          94 kB
          Adriano Crestani
        2. LUCENE-995.patch
          17 kB
          Michael McCandless
        3. LUCENE-995.patch
          11 kB
          Yonik Seeley
        4. LUCENE-995.patch
          10 kB
          Yonik Seeley
        5. LUCENE-995-backport-3x.patch
          9 kB
          Ingo Renner

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: