solr报错解决
1
1)Caused by: org.apache.solr.common.SolrException: Error initializing QueryElevationComponent.
2)Caused by: java.lang.NumberFormatException: For input string: "MA147LL/A"
方案:solrconfig.xml配置文件注释掉下面:
<searchComponent name="elevator">
<!-- pick a fieldType to analyze queries -->
<str name="queryFieldType">string</str>
<str name="config-file">elevate.xml</str>
</searchComponent>
2.sor报错日志位置:solr_home/server/logs/solr.log
3.添加自动更新需要的字段updatetime ,设置字段的时间戳默认值例子:alter table house modify updatetime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP