[
https://issues.apache.org/jira/browse/CONNECTORS-1533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624481#comment-16624481
]
Karl Wright edited comment on CONNECTORS-1533 at 9/22/18 4:40 AM:
------------------------------------------------------------------
Hi [~shinichiro abe], what version of Solr are you using?
The ManifoldCF version of Solrj was updated to 7.4, and this caused many
problems. I think it may the case that solrj 7.4 is incompatible with previous
versions of Solr before 7.4. I have already modified ModifiedHttpClient to
work with SolrJ 7.4.
The code committed to trunk uses unchanged SolrJ 7.4 transmission for all
UpdateRequests, like delete requests or commit requests. Only for
ContentStreamUpdateRequests does it modify how documents are sent to use
multipart HTTP form post. We could try the following to be sure this is
written correctly:
(1) Try using trunk ManifoldCF against Solr 7.4 and see if it works for delete
requests.
(2) If that fails, try changing line 291 of HttpPoster.java to do "new
HttpSolrClient" instead of "new ModifiedHttpSolrClient". That should be using
an unchanged SolrJ 7.4 then.
Please let me know what you find.
was (Author: [email protected]):
Hi [~shinichiro abe], what version of Solr are you using?
The ManifoldCF version of Solrj was updated to 7.4, and this caused many
problems. I think it may the case that solrj 7.4 is incompatible with previous
versions of Solr before 7.4. I have already modified ModifiedHttpClient to
work with SolrJ 7.4.
> Solr Connector is unable to ingest documents
> --------------------------------------------
>
> Key: CONNECTORS-1533
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1533
> Project: ManifoldCF
> Issue Type: Bug
> Components: Lucene/SOLR connector
> Affects Versions: ManifoldCF 2.11
> Reporter: Julien Massiera
> Assignee: Karl Wright
> Priority: Major
> Fix For: ManifoldCF 2.11
>
>
> The "r69acbd9 - Fix solr connector content deletion bug" has introduced
> another bug :
> It is now impossible to ingest documents into Solr 7.4.0, we obtain the
> following error : Error from server at http://localhost:8983/solr/FileShare:
> missing content stream
> The fact is, the requestWriter.getContentWriter(request) object is equal to
> null only on commit requests. So the new lines of code introduced by the fix,
> which are based on the test of this object, result in a null
> Collection<ContentStream> streams object and so the update request is failing.
> Concerned class :
> org.apache.manifoldcf.agents.output.solr.ModifiedHttpSolrClient
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)