Re: Storing numeric fields in Apache 6

2016-04-29 Thread Alan Woodward
oodward" >> To: java-user@lucene.apache.org >> Date: 04/28/16 14:30 >> Subject: Re: Storing numeric fields in Apache 6 >> >> You should add a StoredField with the same name containing the value: >> >> doc.add(new DoublePoint(name, Double.parseDoub

RE: Storing numeric fields in Apache 6

2016-04-29 Thread Uwe Schindler
AM > To: java-user@lucene.apache.org > Subject: Re: Storing numeric fields in Apache 6 > > Hello, > > The suggested change worked in part: Luke now shows me the field > contents, so it's correctly stored, for sure. However, when I ask the > IndexReader for the field listing (

Re: Storing numeric fields in Apache 6

2016-04-29 Thread j . Pardos
at the field is not indexed. Is that the reason? How could I fix it? Thanks. -Original Message- > From: "Alan Woodward" > To: java-user@lucene.apache.org > Date: 04/28/16 14:30 > Subject: Re: Storing numeric fields in Apache 6 > > You should add a St

Re: Storing numeric fields in Apache 6

2016-04-28 Thread j . Pardos
Thank you very much, and sorry for the double post. -Mensaje original- > De: "Alan Woodward" > A: java-user@lucene.apache.org > Fecha: 28/04/2016 14:30 > Asunto: Re: Storing numeric fields in Apache 6 > > You should add a StoredField with the sa

Re: Storing numeric fields in Apache 6

2016-04-28 Thread Alan Woodward
You should add a StoredField with the same name containing the value: doc.add(new DoublePoint(name, Double.parseDouble(value)); doc.add(new StoredField(name, Double.parseDouble(value)); Alan Woodward www.flax.co.uk On 28 Apr 2016, at 13:10, j.Pardos wrote: > Hello all, > > I need to index som

Re: Storing numeric fields in Apache 6

2016-04-28 Thread Andres de la Peña
If I'm right, you should use a StoredField to save the value, you can give it the same name as the used for the DoublePoint field. El jueves, 28 de abril de 2016, j.Pardos escribió: > Hello all, > > I need to index some numeric fields, search with numeric range queries, > and store the data to r