[ 
https://issues.apache.org/jira/browse/CONNECTORS-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13578320#comment-13578320
 ] 

Karl Wright commented on CONNECTORS-623:
----------------------------------------

I looked at a simple extension of HttpSolrServer, with the thought of just 
overriding the useMultiPartPost flag and setting it to "true" rather than its 
current default of "false".  Unfortunately, while it is possible to extend the 
class, it is not possible to set this variable because it is private.

Instead, we're going to have to override this method:

{code}
  public NamedList<Object> request(final SolrRequest request,
      final ResponseParser processor) throws SolrServerException, IOException {
  ...
  }
{code}

Duplicating the code for this method is unfortunate, but is not the end of the 
world by any stretch.  So my current recommendation is that we go ahead and do 
it, and then we'll be able to control the way content gets posted so that 
multipart indeed gets used.


                
> stream_size and stream_name can't be sent
> -----------------------------------------
>
>                 Key: CONNECTORS-623
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-623
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Lucene/SOLR connector
>    Affects Versions: ManifoldCF 1.1
>            Reporter: Shinichiro Abe
>            Assignee: Karl Wright
>            Priority: Minor
>             Fix For: ManifoldCF 1.1
>
>         Attachments: CONNECTORS-623.patch
>
>
> These metadata can be sent to Solr in MCF 1.0.1 but can not be sent in MCF 
> 1.1.
> I think it is because of SolrJ.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to