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 <[email protected]>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<[email protected]>
> For additional commands, e-mail: 
> [email protected].**org<[email protected]>
>
>

Reply via email to