[
https://issues.apache.org/jira/browse/SOLR-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181557#comment-13181557
]
Rob Tulloh commented on SOLR-3010:
----------------------------------
Sorry, meant to include the SolByteArrayContentStream class too. We are trying
to prototype bulk extraction with tika.
Here is the other code, it is trivial sub-class of ContentStreamBase that
implements a stream via a byte array:
{noformat}
class SolrByteArrayContentStream(ContentStreamBase):
def __init__(self, content, mimeType, attachmentFileName):
ContentStreamBase.__init__(self)
self.m_content = content
self.setContentType(mimeType)
self.setName(attachmentFileName)
self.setSize(long(len(content)))
self.setSourceInfo("mimeAttachment")
def getStream(self):
return ByteArrayInputStream(self.m_content)
{noformat}
> solrj: submitting more than one stream via CommonsHttpSolrServer fails
> -----------------------------------------------------------------------
>
> Key: SOLR-3010
> URL: https://issues.apache.org/jira/browse/SOLR-3010
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Reporter: Rob Tulloh
>
> Possible regression of SOLR-2230 on trunk?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]