From dev-return-11380-archive-asf-public=cust-asf.ponee.io@gora.apache.org Tue Apr 30 07:25:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2B74218067E for ; Tue, 30 Apr 2019 09:25:02 +0200 (CEST) Received: (qmail 21554 invoked by uid 500); 30 Apr 2019 07:25:01 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 21533 invoked by uid 99); 30 Apr 2019 07:25:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2019 07:25:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CCE88E28E1 for ; Tue, 30 Apr 2019 07:25:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 849AC25816 for ; Tue, 30 Apr 2019 07:25:00 +0000 (UTC) Date: Tue, 30 Apr 2019 07:25:00 +0000 (UTC) From: "Kevin Ratnasekera (JIRA)" To: dev@gora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GORA-555) Improve Lucene query implementation with NumericRangeQuery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GORA-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Ratnasekera updated GORA-555: ----------------------------------- Component/s: gora-lucene > 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 > 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)