Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 21546 invoked from network); 20 Jun 2010 20:40:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jun 2010 20:40:14 -0000 Received: (qmail 26255 invoked by uid 500); 20 Jun 2010 20:40:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 26214 invoked by uid 500); 20 Jun 2010 20:40:13 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 26206 invoked by uid 99); 20 Jun 2010 20:40:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jun 2010 20:40:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.130.32.201] (HELO mx1.riskmetrics.com) (12.130.32.201) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jun 2010 20:40:06 +0000 From: Carlos Sanchez To: "user@cassandra.apache.org" Date: Sun, 20 Jun 2010 16:39:01 -0400 Subject: RE: Lucandra issues Thread-Topic: Lucandra issues Thread-Index: AcsPY7WL7eCbY/qOQ+ypVEpO6eKUOQBVOh+2 Message-ID: References: <4C1A8298.9070303@trackstudio.com>,<24D2FB53-E25A-4C44-B846-4466E95819CB@gmail.com> In-Reply-To: <24D2FB53-E25A-4C44-B846-4466E95819CB@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Jake, I will be interested in this functionality Carlos ________________________________________ From: Jake Luciani [jakers@gmail.com] Sent: Friday, June 18, 2010 10:57 PM To: user@cassandra.apache.org Subject: Re: Lucandra issues Hi Maxim, Lucandra doesn't support numeric queries quite yet. A workaround would be to load your numbers and convert them to strings. I'll eventually add support for this. Please feel free to help out if you can :) Jake On Jun 17, 2010, at 1:16 PM, Maxim Kramarenko wrote: > Hello! > > I am trying to rework our current lucene-based application to > lucandra. Note the following problem: when I try to use > NumericRangeQuery like this one: > query.add(NumericRangeQuery.newLongRange("deliveryTimestampMinute", > 6, fromDate, toDate, true, true), BooleanClause.Occur.MUST); > > I got the following exception: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > java.lang.NullPointerException > org.apache.lucene.search.NumericRangeQuery$NumericRangeTermEnum.next > (NumericRangeQuery.java:536) > org.apache.lucene.search.MultiTermQuery > $ConstantScoreAutoRewrite.rewrite(MultiTermQuery.java:248) > org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java: > 371) > org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:386) > org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:267) > org.apache.lucene.search.Query.weight(Query.java:100) > org.apache.lucene.search.Searcher.createWeight(Searcher.java:147) > org.apache.lucene.search.Searcher.search(Searcher.java:98) > org.apache.lucene.search.Searcher.search(Searcher.java:108) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Any workaround for this issue ? > > -- > Best regards, > Maxim mailto:maximkr@trackstudio.com This email message and any attachments are for the sole use of the intended= recipients and may contain proprietary and/or confidential information whi= ch may be privileged or otherwise protected from disclosure. Any unauthoriz= ed review, use, disclosure or distribution is prohibited. If you are not an= intended recipient, please contact the sender by reply email and destroy t= he original message and any copies of the message as well as any attachment= s to the original message.