Solr

问题

解决solr 加载时候过慢的问题

disable the search component:

https://github.com/Heliosearch/heliosearch/commit/b43988585f948965a5760bf60314fc76b1c099ff

and the document from solr wiki:

https://wiki.apache.org/solr/SolrPerformanceProblems#How_much_heap_space_do_I_need.3F

IK 自定义分词

vi /data/tomcat/webapps/solr/WEB-INF/classesIKAnalyzer.cfg.xml
<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">   
<properties>   
    <comment>IK Analyzer 扩展配置</comment> 
    <!--用户可以在这里配置自己的扩展字典 --> 
    <entry key="ext_dict">ext.dic;</entry>  
 
    <!--用户可以在这里配置自己的扩展停止词字典--> 
    <entry key="ext_stopwords">stopword.dic;chinese_stopword.dic</entry>  
 
</properties>

参见

参考资料