lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (@MITRE.org)" <DSMI...@mitre.org>
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
it.

Comments?

~ David



-----
 Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-FieldType-support-for-multiple-values-tp4020106.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message