Solr DataImportHandler CachedSqlEntityProcessor ClassCastException

前端 未结 5 1724
[愿得一人]
[愿得一人] 2021-01-21 08:49

I am using Solr 4.6.0 and trying to import my data using CachedSqlEntityProcessor, but somehow I end up getting a ClassCastException.

5条回答
  •  长情又很酷
    2021-01-21 09:09

    This is a regression coming out of the introduction of pluggable cache support in https://issues.apache.org/jira/browse/SOLR-2382 and the workaround (working for me) is to cast to strings in all columns that you will use as either keys or values. In PostgreSQL cast syntax:

    
      
    
    

    (and in other DBs I guess you need CAST(id AS VARCHAR(10) or such instead of id::text).

提交回复
热议问题