Re: Problem with numeric range query syntax in lucene 4.4.0

2014-03-20 Thread Matthew Petersen
> field name. > > Uwe > > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Matthew Petersen [mailto:mdpe...@gmail.com] > > Sent: Thursday, March 20,

RE: Problem with numeric range query syntax in lucene 4.4.0

2014-03-20 Thread Uwe Schindler
://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Matthew Petersen [mailto:mdpe...@gmail.com] > Sent: Thursday, March 20, 2014 9:44 PM > To: java-user@lucene.apache.org > Subject: Problem with numeric range query syntax in lucene 4.4.0 > > Hi >

Problem with numeric range query syntax in lucene 4.4.0

2014-03-20 Thread Matthew Petersen
Hi I'm trying to submit a lucene query string to my index to return a data based on a numeric range. I'm using the syntax provided in the Query Parser Syntax document but the results I get indicate that the query is not working correctly. Below is a unit test that proves that the range query doe

numeric range query

2013-03-25 Thread ash nix
Hi, I have time stamp field for my documents which I have indexed as DoubleField for NumericRange query to work. This field "stream_time" is indexed as DoubleField("stream_time", , Field.Store.No). I get null value when I query a lucene document for this field by using document.getField() call. Do

RE: Numeric range query not returning results

2010-10-06 Thread Todd Nine
gt; > > public NumericField(String name) > > > > Creates a field for numeric values using the default precisionStep > > NumericUtils.PRECISION_STEP_DEFAULT (4). The instance is not yet > > initialized with a numeric value, before indexing a document > > containin

Re: Numeric range query not returning results

2010-10-05 Thread Erick Erickson
ou > > > miss some stored fields? E.g. the default NumericField ctor does not > > > create the field as “stored” to the document? > > > > > > > > > > > > public NumericField(String name) > > > > > > Creates a field for numeric value

Re: Numeric range query not returning results

2010-10-05 Thread Ching
ricUtils.PRECISION_STEP_DEFAULT (4). The instance is not yet > > initialized with a numeric value, before indexing a document > > containing this field, set a value using the various set???Value() > > methods. This constructor creates an indexed, but not stored field. > > > &

RE: Numeric range query not returning results

2010-10-04 Thread Todd Nine
. This constructor creates an indexed, but not stored field. > > > > Uwe > > > > - > > Uwe Schindler > > H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > > > > -

RE: Numeric range query not returning results

2010-10-04 Thread Uwe Schindler
field. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Todd Nine [mailto:t...@spidertracks.co.nz] > Sent: Monday, October 04, 2010 6:13 AM > To: java-user@lucene.apac

Numeric range query not returning results

2010-10-03 Thread Todd Nine
Hi all, I'm having some issues with Numeric Range queries not working as expected. My underlying storage medium is the Lucandra index reader and writer, so I'm not sure if this is an issue within Lucandra or with my usage of numeric field. My numeric range tests that are copies of Uwe's pass in

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

RE: Problem with Numeric range query.

2010-09-23 Thread Uwe Schindler
Hi, > Thank you for your timely response. :-) > It's going to take me longer to create an isolated test case you can test this > with. I will see what I can do. That would be fine. Often with a simple test those errors disappear, because they are problem in the logic somewhere else :) But you

RE: Problem with Numeric range query.

2010-09-23 Thread Daniel Sanders
Sent: Thursday, September 23, 2010 12:23 PM > To: java-user@lucene.apache.org > Subject: Problem with Numeric range query. > > > I have a set of documents that all have a "timestamp" field which is stored as a > long integer number. The field is indexed in my Lucene inde

RE: Problem with Numeric range query.

2010-09-23 Thread Uwe Schindler
ubject: Problem with Numeric range query. > > > I have a set of documents that all have a "timestamp" field which is stored as a > long integer number. The field is indexed in my Lucene index as a number > using NumericField with a precision step of 8: > &g

Problem with Numeric range query.

2010-09-23 Thread Daniel Sanders
I have a set of documents that all have a "timestamp" field which is stored as a long integer number. The field is indexed in my Lucene index as a number using NumericField with a precision step of 8: Field field = new NumericField("timestamp", 8); field.setLongValue( timestampValue);