lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (" <>
Subject Solr FieldType support for multiple values
Date Tue, 13 Nov 2012 16:29:51 GMT
I'm working with Lucene 4's DocValues in a Solr app, but using it to store
multiple values encoded into a byte array.  Unfortunately, Solr's
DocumentBuilder code passes each value individually to the FieldType calling
createField() for each value, and so the FieldType never sees all the values
for a given document at once.  My short-term solution that avoids hacking
Solr is to have a special UpdateRequestProcessor that will combine the
values into a special object that the FieldType will get.  It's inelegant.

Instead, perhaps have a method on FieldType like isMultiValueAware() to
indicate that the "value" parameter to createField(s) is to be a Collection
when multiple values are passed.  Just an idea, there are other ways to do


~ David

View this message in context:
Sent from the Lucene - Java Developer mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message