You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Maxence SAUNIER (JIRA)" <ji...@apache.org> on 2018/04/20 09:00:00 UTC

[jira] [Comment Edited] (CONNECTORS-1503) UpdateProcessor SolrCloud and ManifoldCF

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

Maxence SAUNIER edited comment on CONNECTORS-1503 at 4/20/18 8:59 AM:
----------------------------------------------------------------------

Hello Shinichiro, Hello Karl,

[~kwright@metacarta.com] "can you take a fresh solr instance and try Abe-san's experiment with it? "
Yes, I will test today this example.

I bring some clarifications.
*My need:*
I use an update processor personalized call *CityaTestUpdateProcessor*
This UpdateProcessor, update many field in Solr, so I add this Update processor in the default UpdateProcessorChain.

My *configoverlay.json*:
{code:json}
{
  "runtimeLib":{"CityaTestUpdateProcessorJar":{
      "name":"CityaTestUpdateProcessorJar",
      "version":9}},
  "updateProcessor":{"CityaTestUpdateProcessorJar":{
      "name":"CityaTestUpdateProcessorJar",
      "class":"com.citya.CityaTestUpdateProcessorFactory",
      "runtimeLib":"true",
      "version":"9"}}
}
{code}

With this code, it's *work good*:
{code}
curl "http://srv-formation-solr:8983/solr/dev1/update?processor=CityaTestUpdateProcessorJar&commit=true" -H 'Content-type: application/json' -d '[{"content": "test.test", "id":"file://///srvics35/ways_montauban/gestion_ged/gerance/1129/1129003700059599/_BAUX_AVENANTS/60413_LOC_MANDAT_PRLVLMT_001.PDF"}]'
{code}

With arguments in ManifoldCF I optain a field "processor":"CityaTestUpdateProcessorJar",

---
I test your example and I make you a return.

Thanks you,




was (Author: moltroon):
Hello Shinichiro, Hello Karl,

[~kwright@metacarta.com] "can you take a fresh solr instance and try Abe-san's experiment with it? "
Yes, I will test today this example.

I bring some clarifications.
*My need:*
I use an update processor personalized call *CityaTestUpdateProcessor*
This UpdateProcessor, update many field in Solr, so I add this Update processor in the default UpdateProcessorChain.

My *configoverlay.json*:
{code:json}
{
  "runtimeLib":{"CityaTestUpdateProcessorJar":{
      "name":"CityaTestUpdateProcessorJar",
      "version":9}},
  "updateProcessor":{"CityaTestUpdateProcessorJar":{
      "name":"CityaTestUpdateProcessorJar",
      "class":"com.citya.CityaTestUpdateProcessorFactory",
      "runtimeLib":"true",
      "version":"9"}}
}
{code}

With this code, it's *work good*:
{code}
curl "http://srv-formation-solr:8983/solr/dev1/update?*processor=CityaTestUpdateProcessorJar*&commit=true" -H 'Content-type: application/json' -d '[{"content": "test.test", "id":"file://///srvics35/ways_montauban/gestion_ged/gerance/1129/1129003700059599/_BAUX_AVENANTS/60413_LOC_MANDAT_PRLVLMT_001.PDF"}]'
{code}

I test your example and I make you a return.

Thanks you,



> UpdateProcessor SolrCloud and ManifoldCF
> ----------------------------------------
>
>                 Key: CONNECTORS-1503
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1503
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Solr 6.x component
>    Affects Versions: ManifoldCF 2.9.1
>         Environment: SolrCloud 6.6
> ManifoldCF 2.9.1
>            Reporter: Maxence SAUNIER
>            Assignee: Shinichiro Abe
>            Priority: Major
>
> Hello,
> [Link to Apache mail archive|http://mail-archives.apache.org/mod_mbox/manifoldcf-user/201804.mbox/%3C079e01d3d7da%24807b8f60%248172ae20%24%40citya.com%3E]
> When we used Argument option in ManifoldCF for SolrCloud, ManifoldCF add they arguments on the POST request and not on the url parameters. So, for add a (pre)processor or a post-processor with the url, it's not possible.
> [SolrConfig updateRequestProcessorChain|https://lucene.apache.org/solr/guide/6_6/config-api.html#ConfigAPI-Whatabout_updateRequestProcessorChain_]
> [call UpdateRequestProcessors|https://lucene.apache.org/solr/guide/6_6/update-request-processors.html#UpdateRequestProcessors-Processor_Post-ProcessorRequestParameters]
> [Conf image|https://image.ibb.co/cZC8bn/jira_update_processor.png]
> Solr response:
> org.apache.solr.common.SolrException: ERROR: [doc=file://///srvics01/ways_holding/gestion_ged/gerance/3573/201102081135_ENVOIDEVISPP.doc] unknown field 'processor'



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)