[ https://issues.apache.org/jira/browse/SOLR-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569275#action_12569275 ]
Juho-Matti Stenberg commented on SOLR-284: ------------------------------------------ I wrote a simple patch for RichDocumentUpdateHandler to accept multivalued fields. Just POST the same field name multiple times, e.g. category=TVs&category=Radios {code:title=RichDocumentRequestHandler.java.patch} Index: RichDocumentRequestHandler.java =================================================================== --- RichDocumentRequestHandler.java (revision 0) +++ RichDocumentRequestHandler.java (working copy) @@ -211,7 +211,10 @@ for (int i =0; i < fields.length;i++){ String fieldName = fields[i].getName(); - builder.addField(fieldName,params.get(fieldName),1.0f); + String[] values = params.getParams(fieldName); + for(String value : values) { + builder.addField(fieldName,value,1.0f); + } } {code} Seems to work for me. Best Regards, Pompo > Parsing Rich Document Types > --------------------------- > > Key: SOLR-284 > URL: https://issues.apache.org/jira/browse/SOLR-284 > Project: Solr > Issue Type: New Feature > Components: update > Affects Versions: 1.3 > Reporter: Eric Pugh > Fix For: 1.3 > > Attachments: libs.zip, rich.patch, source.zip, test-files.zip, > test.zip > > > I have developed a RichDocumentRequestHandler based on the CSVRequestHandler > that supports streaming a PDF, Word, Powerpoint, Excel, or PDF document into > Solr. > There is a wiki page with information here: > http://wiki.apache.org/solr/UpdateRichDocuments > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.