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
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
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
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
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
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
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?
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
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
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
10 matches
Mail list logo