社区
高性能WEB开发
帖子详情
solr使用suggest框架时不支持中文怎么办,有好的解决方案吗
kongwei302
2012-09-20 06:57:00
RT
...全文
264
7
打赏
收藏
solr使用suggest框架时不支持中文怎么办,有好的解决方案吗
RT
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
JONERXQ12
2012-12-21
打赏
举报
回复
增加这个就能行吗,能把真个schma.xml 和solrcongfig贴出来吗,我的配置,如下
flexstruts
2012-09-21
打赏
举报
回复
同求。。支持下
kongwei302
2012-09-21
打赏
举报
回复
solr使用suggest框架时不支持中文怎么办,有好的解决方案吗,没人知道吗?
kaixinwoo2
2012-09-21
打赏
举报
回复
<searchComponent class="solr.SpellCheckComponent" name="suggest">
<str name="queryAnalyzerFieldType">text</str>
<lst name="spellchecker">
<str name="name">suggest</str>
<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
<str name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
<!--<str name="storeDir">suggest</str>-->
<str name="buildOnCommit">false</str>
<!--<bool name="exactMatchFirst">true</bool>
<str name="sourceLocation">phrasesuggest.txt</str>-->
<!-- Alternatives to lookupImpl:
org.apache.solr.spelling.suggest.fst.FSTLookup [finite state automaton]
org.apache.solr.spelling.suggest.fst.WFSTLookupFactory [weighted finite state automaton]
org.apache.solr.spelling.suggest.jaspell.JaspellLookup [default, jaspell-based]
org.apache.solr.spelling.suggest.tst.TSTLookup [ternary trees]
-->
<str name="field">sugg</str> <!-- the indexed field to derive suggestions from -->
<float name="threshold">0.005</float>
<!--<str name="buildOnCommit">true</str>-->
<!--
<str name="sourceLocation">american-english</str>
-->
</lst>
</searchComponent>
设置成你分析的类型
kaixinwoo2
2012-09-21
打赏
举报
回复
<searchComponent class="solr.SpellCheckComponent" name="suggest">
<str name="queryAnalyzerFieldType">text</str>
<lst name="spellchecker">
<str name="name">suggest</str>
<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
<str name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
<!--<str name="storeDir">suggest</str>-->
<str name="buildOnCommit">false</str>
<!--<bool name="exactMatchFirst">true</bool>
<str name="sourceLocation">phrasesuggest.txt</str>-->
<!-- Alternatives to lookupImpl:
org.apache.solr.spelling.suggest.fst.FSTLookup [finite state automaton]
org.apache.solr.spelling.suggest.fst.WFSTLookupFactory [weighted finite state automaton]
org.apache.solr.spelling.suggest.jaspell.JaspellLookup [default, jaspell-based]
org.apache.solr.spelling.suggest.tst.TSTLookup [ternary trees]
-->
<str name="field">sugg</str> <!-- the indexed field to derive suggestions from -->
<float name="threshold">0.005</float>
<!--<str name="buildOnCommit">true</str>-->
<!--
<str name="sourceLocation">american-english</str>
-->
</lst>
</searchComponent>
kongwei302
2012-09-21
打赏
举报
回复
期待大神出现.自己顶自己一下.
solr
权威指南上卷读书笔记
第1章 初识
Solr
部署
Solr
至Tomcat 参考原书第2章
Solr
基础 通过第2章,你将可以学习到如下内容: ·理解
Solr
Core的基本概念; ·掌握
Solr
Core的基本管理; ·掌握如何
使用
Solr
DataImporter导入数据; ·掌握
Solr
Cell; ·了解
Solr
Duplication Detection(索引去重检测); ·了解Luke的基本
使用
。 2.1
Solr
Core 我们的索引数据一般都是基于Core进行组织管理的,自然离不开对Core的一些管理操作,比如新建Co
技术分享:如何用
Solr
搭建大数据查询平台
技术分享:如何用
Solr
搭建大数据查询平台 0×00 开头照例扯淡 自从各种脱裤门事件开始层出不穷,在下就学乖了,各个地方的密码全都改成不一样的,重要帐号的密码定期更换,生怕被人社出祖宗十八代的我,甚至开始用起了假名字,我给自己起一新网名”兴才”,这个看起来还不错的名字,其实是我们家乡骂人土话,意思是脑残人士…. -_-|||额好吧,反正是假的,不...
redis/nginx/dubbo/
solr
中间件小总结
Redis Redis是开源免费的,遵守BSD协议,是一个高性能的key-value非关系型数据库。单线程指的是网络请求模块
使用
了一个线程(所以不需考虑并发安全性),即一个线程处理所有网络请求,其他模块仍用了多个线程。redis采用多路复用机制:即多个网络socket复用一个io线程,实际是单个线程通过记录跟踪每一个Sock(I/O流)的状态来同
时
管理多个I/O流.。可以减轻数据库压力,查询...
技术分享:如何用
Solr
搭建大数据查询平台【转载+整理】
b41k3r 2016-03-30 共191022人围观,发现38个不明物体 数据安全 *原创作者:b41k3r 0×00 开头照例扯淡 自从各种脱裤门事件开始层出不穷,在下就学乖了,各个地方的密码全都改成不一样的,重要帐号的密码定期更换,生怕被人社出祖宗十八代的我,甚至开始用...
8 个基于 Lucene 的开源搜索引擎
Lucene是一种功能强大且被广泛
使用
的搜索引擎,以下列出8种基于Lucene的搜索引擎,你可以想象他们有多么强大... Apache
Solr
Solr
是一个高性能,采用Java5开发,基于Lucene的全文搜索服务器。文档通过Http利用XML加到一个搜索集合中。查询该集合也是通过 http收到一个XML/JSON响应来实现。它的主要特性包括:高效、灵活的缓存功能,垂直搜索功能,高
高性能WEB开发
25,985
社区成员
4,366
社区内容
发帖
与我相关
我的任务
高性能WEB开发
高性能WEB开发
复制链接
扫一扫
分享
社区描述
高性能WEB开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章