You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Kevin Ratnasekera (JIRA)" <ji...@apache.org> on 2019/04/30 07:26:00 UTC

[jira] [Resolved] (GORA-555) Improve Lucene query implementation with NumericRangeQuery

     [ https://issues.apache.org/jira/browse/GORA-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Ratnasekera resolved GORA-555.
------------------------------------
    Resolution: Fixed

> Improve Lucene query implementation with NumericRangeQuery 
> -----------------------------------------------------------
>
>                 Key: GORA-555
>                 URL: https://issues.apache.org/jira/browse/GORA-555
>             Project: Apache Gora
>          Issue Type: Improvement
>          Components: gora-lucene
>    Affects Versions: 0.8
>            Reporter: Kevin Ratnasekera
>            Assignee: Xavier Sumba
>            Priority: Major
>             Fix For: 0.9
>
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> There are performance benefits around NumericRangeQuery. Please notice comment on LuceneQuery implementation.
> {code}
>  //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);
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)