Lucene - Core
  1. Lucene - Core
  2. LUCENE-1768

NumericRange support for new query parser

    Details

    • Lucene Fields:
      New

      Description

      It would be good to specify some type of "schema" for the query parser in future, to automatically create NumericRangeQuery for different numeric types? It would then be possible to index a numeric value (double,float,long,int) using NumericField and then the query parser knows, which type of field this is and so it correctly creates a NumericRangeQuery for strings like "[1.567..*]" or "(1.787..19.5]".

      There is currently no way to extract if a field is numeric from the index, so the user will have to configure the FieldConfig objects in the ConfigHandler. But if this is done, it will not be that difficult to implement the rest.

      The only difference between the current handling of RangeQuery is then the instantiation of the correct Query type and conversion of the entered numeric values (simple Number.valueOf(...) cast of the user entered numbers). Evenerything else is identical, NumericRangeQuery also supports the MTQ rewrite modes (as it is a MTQ).

      Another thing is a change in Date semantics. There are some strange flags in the current parser that tells it how to handle dates.

      1. week-8.patch
        29 kB
        Vinicius Barros
      2. week-7.patch
        97 kB
        Vinicius Barros
      3. week5-6.patch
        108 kB
        Vinicius Barros
      4. week4.patch
        82 kB
        Vinicius Barros
      5. week3.patch
        76 kB
        Vinicius Barros
      6. week2.patch
        39 kB
        Vinicius Barros
      7. week15_for_trunk.patch
        61 kB
        Vinicius Barros
      8. week15_for_lucene_3x.patch
        2 kB
        Vinicius Barros
      9. week-14.patch
        61 kB
        Vinicius Barros
      10. week11-13_for_lucene_3x.patch
        102 kB
        Vinicius Barros
      11. week11-13_for_lucene_3x.patch
        108 kB
        Uwe Schindler
      12. week1.patch
        24 kB
        Vinicius Barros
      13. TestNumericQueryParser-fix.patch
        6 kB
        Vinicius Barros
      14. TestNumericQueryParser-fix.patch
        8 kB
        Uwe Schindler
      15. TestNumericQueryParser-fix.patch
        9 kB
        Uwe Schindler
      16. TestNumericQueryParser-fix.patch
        10 kB
        Uwe Schindler

        Issue Links

          Activity

          Uwe Schindler created issue -
          Uwe Schindler made changes -
          Field Original Value New Value
          Link This issue is blocked by LUCENE-1567 [ LUCENE-1567 ]
          Uwe Schindler made changes -
          Fix Version/s 2.9 [ 12312682 ]
          Michael McCandless made changes -
          Assignee Uwe Schindler [ thetaphi ]
          Uwe Schindler made changes -
          Fix Version/s 3.1 [ 12314025 ]
          Fix Version/s 2.9 [ 12312682 ]
          Michael Busch made changes -
          Link This issue relates to LUCENE-1823 [ LUCENE-1823 ]
          Mark Thomas made changes -
          Workflow jira [ 12471915 ] Default workflow, editable Closed status [ 12563191 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12563191 ] jira [ 12584142 ]
          Adriano Crestani made changes -
          Labels contrib gsoc lucene-gsoc-11
          Adriano Crestani made changes -
          Labels contrib gsoc lucene-gsoc-11 contrib gsoc gsoc2011 lucene-gsoc-11 mentor
          Uwe Schindler made changes -
          Assignee Uwe Schindler [ thetaphi ] Adriano Crestani [ adriano_crestani ]
          Vinicius Barros made changes -
          Attachment week1.patch [ 12480814 ]
          Vinicius Barros made changes -
          Attachment week2.patch [ 12481522 ]
          Vinicius Barros made changes -
          Attachment week3.patch [ 12482321 ]
          Vinicius Barros made changes -
          Attachment week4.patch [ 12483223 ]
          Vinicius Barros made changes -
          Attachment week5-6.patch [ 12485080 ]
          Vinicius Barros made changes -
          Attachment week-7.patch [ 12485963 ]
          Uwe Schindler made changes -
          Assignee Adriano Crestani [ adriano_crestani ] Uwe Schindler [ thetaphi ]
          Vinicius Barros made changes -
          Attachment TestNumericQueryParser-fix.patch [ 12486391 ]
          Uwe Schindler made changes -
          Attachment TestNumericQueryParser-fix.patch [ 12486482 ]
          Uwe Schindler made changes -
          Attachment TestNumericQueryParser-fix.patch [ 12486508 ]
          Uwe Schindler made changes -
          Attachment TestNumericQueryParser-fix.patch [ 12486556 ]
          Vinicius Barros made changes -
          Attachment week-8.patch [ 12486797 ]
          Vinicius Barros made changes -
          Link This issue is related to LUCENE-3338 [ LUCENE-3338 ]
          Uwe Schindler made changes -
          Link This issue relates to LUCENE-3353 [ LUCENE-3353 ]
          Uwe Schindler made changes -
          Link This issue relates to LUCENE-3353 [ LUCENE-3353 ]
          Uwe Schindler made changes -
          Link This issue is blocked by LUCENE-3352 [ LUCENE-3352 ]
          Uwe Schindler made changes -
          Link This issue is blocked by LUCENE-3352 [ LUCENE-3352 ]
          Uwe Schindler made changes -
          Link This issue is related to LUCENE-3352 [ LUCENE-3352 ]
          Vinicius Barros made changes -
          Attachment week11-13_for_lucene_3x.patch [ 12490364 ]
          Uwe Schindler made changes -
          Attachment week11-13_for_lucene_3x.patch [ 12490644 ]
          Vinicius Barros made changes -
          Attachment week-14.patch [ 12491078 ]
          Vinicius Barros made changes -
          Attachment week15_for_trunk.patch [ 12493546 ]
          Attachment week15_for_lucene_3x.patch [ 12493547 ]
          Uwe Schindler made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 3.4 [ 12316675 ]
          Resolution Fixed [ 1 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Uwe Schindler
              Reporter:
              Uwe Schindler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development