Problem with Numeric range query.

2010-09-23 Thread Daniel Sanders
ch( query, null, myCollector); This also fails to return my document(s). Am I doing something wrong here? Have I misunderstood how this is supposed to work? Has anyone else had problems like this? Thanks for any help or guidance or tips you can give me, -Daniel Sanders

RE: Problem with Numeric range query.

2010-09-23 Thread Daniel Sanders
lusive == false, then max is decremented. So my query: NumericRangeQuery.newLongRange("timestamp",8,timeX-1,timeX,false,true) is essentially equivalent to the query you suggest trying: NumericRangeQuery.newLongRange("timestamp",8,timeX,timeX,true,true) right?

RE: Problem with Numeric range query.

2010-09-23 Thread Daniel Sanders
I'm certain the timestamp field is being indexed. It is created as follows: Document doc = new Document(); NumericField timeField = new NumericField("timestamp", 8); // Defaults to indexing = true. timeField.setLongValue( timeX); doc.add( timeField); ... indexWriter.a