This is actually due to a bug:
https://issues.apache.org/jira/browse/LUCENE-3065
which was ixed in 3.2. The bug is that, prior to Lucene 3.2, if you
stored a NumericField, when you later load that document, the field is
converted to an ordinary Field (no longer numeric), so when you then
ind
e gone through the motions to rebuild my doc from
> whole cloth and I'm reasonably sure it is working me :-)
>
> Thanks!
>
> -Original Message-
> From: Ian Lea [mailto:ian@gmail.com]
> Sent: Thursday, May 10, 2012 1:20 AM
> To: java-user@lucene.apache.org
: Re: update/re-add an existing document with numeric fields
You can't selectively update fields in docs read from an index, in old
or current versions of lucene. I think there are some ideas floating
around but nothing usable today as far as I know. You'll need to
rebuild the whole
You can't selectively update fields in docs read from an index, in old
or current versions of lucene. I think there are some ideas floating
around but nothing usable today as far as I know. You'll need to
rebuild the whole doc before passing it to writer.updateDocument().
--
Ian.
On Wed, May
Note: I'm bound to lucene 3.0.3 for the context of this question, but
I would be interested to know if newer versions would help me here.
I have an existing document in my directory that has one regular
String field and one numeric field. I naively thought I could update
that document to chang
Note: I'm bound to lucene 3.0.3 for the context of this question, but
I would be interested to know if newer versions would help me here.
I have an existing document in my directory that has one regular
String field and one numeric field. I naively thought I could update
that document to change th
Note: I'm bound to lucene 3.0.3 for the context of this question, but
I would be interested to know if newer versions would help me here.
I have an existing document in my directory that has one regular
String field and one numeric field. I naively thought I could update
that document to chan
Note: I'm bound to lucene 3.0.3 for the context of this question, but
I would be interested to know if newer versions would help me here.
I have an existing document in my directory that has one regular
String field and one numeric field. I naively thought I could update
that document to c
Note: I'm bound to lucene 3.0.3 for the context of this question, but
I would be interested to know if newer versions would help me here.
I have an existing document in my directory that has one regular
String field and one numeric field. I naively thought I could update
that document to change
Note: I'm bound to lucene 3.0.3 for the context of this question, but
I would be interested to know if newer versions would help me here.
I have an existing document in my directory that has one regular
String field and one numeric field. I naively thought I could update
that document to change
10 matches
Mail list logo