It doesn't work because lucene doesn't store all the necessary info in the
index.  It may work for StringField because there isn't really any other
info for that field type - it's just a string stored as is - but other
fields have tokenization, precision, whatever, which may not be stored, and
evidently isn't for DoubleField.


--
Ian.



On Fri, Apr 26, 2013 at 2:43 PM, Neil Ireson <n.ire...@dcs.shef.ac.uk>wrote:

> Thanks for the reply.
>
> I don't understand why I cannot "read an existing document,... and add it
> to an existing or new index".
>
> I understand this wouldn't work for fields which are not stored, I also
> understand that I am responsible for making sure the tokenizers and
> analyzers are the same, but given these caveats, what is the reason for it
> failing to work for all stored fields.
>
> As I said before the process works fine for StringField types and as far
> as I can see the only reason it fails for DoubleField types is that the
> fieldType().indexed() incorrectly returns false when it is indexed.
>
>
> N
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> java-user-unsubscribe@lucene.**apache.org<java-user-unsubscr...@lucene.apache.org>
> For additional commands, e-mail: 
> java-user-help@lucene.apache.**org<java-user-h...@lucene.apache.org>
>
>

Reply via email to