Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-555

Improve Lucene query implementation with NumericRangeQuery

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.9
    • gora-lucene
    • None

    Description

      There are performance benefits around NumericRangeQuery. Please notice comment on LuceneQuery implementation.

       //TODO: Change this to a NumericRangeQuery when necessary (it's faster)
            String lower = null;
            String upper = null;
            if (getStartKey() != null) {
              //Do we need to escape the term?
              lower = getStartKey().toString();
            }
            if (getEndKey() != null) {
              upper = getEndKey().toString();
            }
            if (upper == null && lower == null) {
              q = new MatchAllDocsQuery();
            } else {
              q = TermRangeQuery.newStringRange(pk, lower, upper, true, true);
            }
      

      Attachments

        Issue Links

          Activity

            People

              c.uent Xavier Sumba
              djkevincr Kevin Ratnasekera
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 3h 50m
                  3h 50m