solr error logs org.apache.solr.common.SolrException: ERROR: [doc=17] unknown field alias

在solr中 添加新的索引词语时,报如标题所示错误,指定是插入的字段没有在solr索引字段里

可以修改 solr安装目录/solr/conf 目录下的 schema.xml 

在此xml文件内加入所需字段即可,格式如下 

<field name="alias" type="text_general" indexed="true" stored="true" />

注: name, type, indexed, stored 可根据实际情况进行填写!

posted @ 2013-12-13 16:15  Debm.Zhang  阅读(4211)  评论(1编辑  收藏  举报