作者:唱歌好好听i | 来源:互联网 | 2023-05-19 19:57
solr4.9
自动完成配置问题记录
suggest
org.apache.solr.spelling.suggest.Suggester
org.apache.solr.spelling.suggest.tst.TSTLookupFactory
AllContent
0.005
true
suggest.txt
这里的suggest.txt词库默认应该是
utf-8 无BOM文档,否则solr读取有问题,
如果utf-8有BOM,那么词库第一行无法读取:
solr suggest 自定义词库和系统词库一起使用:
suggestcustom
org.apache.solr.spelling.suggest.Suggester
org.apache.solr.spelling.suggest.tst.TSTLookupFactory
AllContent
0.005
true
suggest.txt
查询方式:http://localhost:8080/solr/resource/suggest?q=全&wt=json&indent=true&spellcheck=true&spellcheck.build=true&spellcheck.reload=true
&spellcheck.dictiOnary=suggest&spellcheck.dictiOnary=suggestcustom