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

2017-07-06 Thread Joe Ye
sk? If so, when happens if a crash occurs before those updates are committed? Many thanks, Joe On Tue, Jul 4, 2017 at 10:53 PM, Trejkaz wrote: > On Tue, 4 Jul 2017 at 22:39, Joe Ye wrote: > > > Hi, > > > > I'm using Lucene core 6.6. > > &

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: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-23 Thread Joe Ye
ields, I suggest > you use MultiDocValues.getNumericValues; this will return a doc values > instance that understand global docIds and you can just look up the value > directly. > > Note that in Lucene 7.0 the DV APIs have switched to iterators. > > Mike McCandless > > http:

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-22 Thread Joe Ye
ose sources. > > Mike McCandless > > http://blog.mikemccandless.com > > On Mon, Jun 19, 2017 at 11:50 AM, Joe Ye wrote: > >> Thanks Mike! My colleague only forwarded Erick's Solr reply today as it >> seems I didn't get any emails and may have been taken

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Joe Ye
ally (to refresh). > > But also see Erick's solr-specific response (to the list) a week ago. > > Mike McCandless > > http://blog.mikemccandless.com > > On Mon, Jun 19, 2017 at 5:41 AM, Joe Ye wrote: > >> Hi, >> >> Could anyone help with my issue des

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Joe Ye
Hi, Could anyone help with my issue described below? If I'm not posting on the right mailing list please direct me to the correct one. Many thanks, Joe On Mon, Jun 12, 2017 at 3:05 PM, Joe Ye wrote: > Hi, > > I have a few NumericDocValuesField fields and also added separate

Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-12 Thread Joe Ye
Hi, I have a few NumericDocValuesField fields and also added separate StoredField fields to store the values so that I can access them in query results. I used IndexWriter.updateNumericDocValue to update the value of a DocValues field. Then I firstly called SearcherManager.maybeRefresh to ensure S