RE: Numeric range query not returning results

2010-10-06 Thread Todd Nine
I've determined the problem. It's the same end bug as we experienced with the Cassandra encoding and the term enumeration not being properly returned. I've outlined the issues in this bug on Lucandra. http://github.com/tjake/Lucandra/issues/#issue/40 As you can see, the enumeration of the Lucan

Re: Numeric range query not returning results

2010-10-05 Thread Erick Erickson
Lucene doesn't (as far as I know) support pure negative queries. Have you tried adding the MatchAllDocsQuery to your BQ? See: http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/MatchAllDocsQuery.html

Re: Numeric range query not returning results

2010-10-05 Thread Ching
More problem with NumericRangeQuery when combined it with BooleanQuery. Here are the problem, please help. 1. I have a field of Date that is indexed as long 2. In the search, I need to exclude some time period, I used the BooleanQuery to combined those excluded time periods like below, BooleanQuer

RE: Numeric range query not returning results

2010-10-04 Thread Todd Nine
Hi Uwe, My example wasn't very clear, as I have a load of other code in my actual implementation and I was trying to cut it down for clarity. This is actually my indexing service for my Datanucleus Cassandra plugin, so I have a 1 to 1 relationship where a single document corresponds to a Persist

RE: Numeric range query not returning results

2010-10-04 Thread Uwe Schindler
This test works perfectly and returns 1 doucment: public void testToddNine() throws Exception { RAMDirectory directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new WhitespaceAnalyzer(), true, MaxFieldLength.UNLIMITED); try { Document doc = n