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

2017-06-26 Thread Michael McCandless
MultiDocValues.getBinaryValues should be fine for that. Mike McCandless http://blog.mikemccandless.com On Fri, Jun 23, 2017 at 11:44 AM, Joe Ye wrote: > Thanks very much Mike! That's very helpful! I got MultiDocValues. > getNumericValues to work. > > A follow up

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

2017-06-23 Thread Joe Ye
Thanks very much Mike! That's very helpful! I got MultiDocValues.getNumericValues to work. A follow up question: what's the best way/how do I retrieve binaryDocValues? Regards, Joe On Fri, Jun 23, 2017 at 11:00 AM, Michael McCandless < luc...@mikemccandless.com> wrote: > Try subscribing to the

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

2017-06-23 Thread Michael McCandless
Try subscribing to the mailing list again? Just send an email to java-user-subscr...@lucene.apache.org, then follow the instructions of the email it replies with. You shouldn't have to open a new DirectoryReader; instead, use the one you just searched (where you got your ScoreDocs from); use

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

2017-06-22 Thread Joe Ye
Thanks a lot Mike! I still don't get any emails from the mailing list :( Note that I am new to docValues and tried to google examples to retrieve docValues from search results but I didn't find much info. I experimented with the below code using Lucene 6.2.1: for (ScoreDoc scoreDoc

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

2017-06-19 Thread Michael McCandless
In pure Lucene you could just pull the doc values for the docIDs in your set of search results; MultiDocValues can be helpful sugar here, unless you need SORTED or SORTED_SET in which case it's best to go per-segment. Or just track down where Solr does this and poach those sources. Mike

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

2017-06-19 Thread Erick Erickson
Joe: I have no reason to believe you were taken off the user's list intentionally. Maybe your spam filter is over-zealous or something? Or perhaps you registered with some no-longer-valid mail address and could register again? Erick On Mon, Jun 19, 2017 at 8:50 AM, Joe Ye

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

2017-06-19 Thread Joe Ye
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 off the mailing list for some reason? We're using Lucene core only (version 6.2.1 at the moment). So there's no link between the docValue and its associated stored field?

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

2017-06-19 Thread Michael McCandless
Updating the doc value will not update the stored field (what document.get returns). If you need to change stored fields you have to use the IW.updateDocuments API, where the old document is deleted and a new document is indexed, atomically (to refresh). But also see Erick's solr-specific

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

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

2017-06-12 Thread Erick Erickson
bq: ...added separate StoredField fields to store the values You're exactly right, those are two separate fields, how would Solr (or Lucene) know they were related? There's no reason to have the second stored field, you can return the value of a docValues field even if stored="false", see