solr dataimport error: Indexing failed. Rolled back all changes

前端 未结 1 891
醉话见心
醉话见心 2021-01-25 03:58

When I run the \"Full import with cleaning\" command, error is \"Indexing failed. Rolled back all changes\"

My dataimport config file:

         


        
相关标签:
1条回答
  • 2021-01-25 04:49

    I kept receiving the same error message at some point in time.For me there were the following reasons:

    • bad connection string.
    • Bad driver (com.mysql.jdbc.Driver)
    • bad query
    • bad mapping of columns to solrfields ( I think it might be your problem too)

    Make sure the name of the columns in the database is the same (case sensitive) as the name of the columns in SOLR. If not rename the colmuns name in the query:

    select id as uniqueid, title as Tittle
    

    or using the field element in the entity you defined like this:

    <field column="ID" name="id" />
    

    You are using the field element wrong. See here how you can use this element: http://wiki.apache.org/solr/DataImportHandler#Configuration_in_data-config.xml

    If you can share other relevant data and logs we can give you more specific information.

    Good luck.

    0 讨论(0)
提交回复
热议问题