cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Luciani <jak...@gmail.com>
Subject Re: Lucandra issues
Date Sat, 19 Jun 2010 03:57:57 GMT
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  
<maximkr@trackstudio.com> 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:
> ====================================
> 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)
> ===================================
>
> Any workaround for this issue ?
>
> -- 
> Best regards,
> Maxim                            mailto:maximkr@trackstudio.com

Mime
View raw message