Solr DataImportHandler CachedSqlEntityProcessor ClassCastException

前端 未结 5 1658
[愿得一人]
[愿得一人] 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:18

    CachedSqlEntityProcessor relies on DIHCacheSupport(Map getIdCacheData(...) ) that is not adapted to work with keys of type Integer, which is expected behavior for any cache. (Object key = context.resolve(cacheForeignKey);, this key should really be of type String)

    SELECT CAST(id as CHAR(32)) AS CID,full_name FROM sm_conferences 
    

提交回复
热议问题