DocValue update methods don't appear to throw exception if the document doesn't exist

2017-07-04 Thread Joe Ye
Hi, I'm using Lucene core 6.6. I noticed an issue that DocValue update methods (indexWriter.updateNumericDocValue & indexWriter.updateBinaryDocValue) don't appear to throw exception or return any error code if the document doesn't exist. Is this intentional? I don't want to check the existence of

Re: DocValue update methods don't appear to throw exception if the document doesn't exist

2017-07-04 Thread Trejkaz
On Tue, 4 Jul 2017 at 22:39, Joe Ye wrote: > Hi, > > I'm using Lucene core 6.6. > > I noticed an issue that DocValue update methods > (indexWriter.updateNumericDocValue > & indexWriter.updateBinaryDocValue) don't appear to throw exception or > return any error code if the document doesn't exist.

Re: DocValue update methods don't appear to throw exception if the document doesn't exist

2017-07-04 Thread Michael McCandless
This is by design: you are able to add a doc values field to a previously indexed document even if that document didn't originally index that doc values field. The update brings the doc values field into existence for that document. Mike McCandless http://blog.mikemccandless.com On Tue, Jul 4,