Re: update/re-add an existing document with numeric fields

2012-05-10 Thread Michael McCandless
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

Re: update/re-add an existing document with numeric fields

2012-05-10 Thread Ian Lea
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

2012-05-10 Thread Tim Eck
: 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

Re: update/re-add an existing document with numeric fields

2012-05-10 Thread Ian Lea
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

update/re-add an existing document with numeric fields

2012-05-09 Thread Tim Eck
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

update/re-add an existing document with numeric fields

2012-05-09 Thread Tim Eck
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

update/re-add an existing document with numeric fields

2012-05-09 Thread Tim Eck
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

update/re-add an existing document with numeric fields

2012-05-09 Thread Tim Eck
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

update/re-add an existing document with numeric fields

2012-05-08 Thread Tim Eck
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

update/re-add an existing document with numeric fields

2012-05-08 Thread Tim Eck
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