lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Ireson <n.ire...@dcs.shef.ac.uk>
Subject Indexed numeric fields return indexed() == false
Date Fri, 26 Apr 2013 11:09:02 GMT
Hi all,

I am copying documents from a source index to another (and adding more  
fields), all the fields are indexed and stored.

I'm basically doing...

for (int docNum = 0; docNum < maxDoc; docNum++)
{
   Document doc = indexReader.document(docNum);
   doc.add(new Field1...);
   doc.add(new Field2...);

   indexWriter.addDocument(doc);
}

However I have a number of DoubleField types and these fields are  
copied but not re-indexed and fieldType().indexed() == false, despite  
being indexed in the source index.

Everything works fine for StringField types.

Is this a bug or am I doing something wrong? 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message