当前位置:网站首页>Solr word segmentation analysis
Solr word segmentation analysis
2022-07-06 16:46:00 【Daily enlightenment】
stay Solr In the visual management interface ,Core There will be... In the management menu item of Analysis, Express basis Scheme.xml(managed-schema) The configuration in requires parsing .
(1) Upload jar To the specified directory
Upload ik-analyzer-7.7.0.jar To
/usr/local/solr/server/solr-webapp/webapp/WEB-INF/lib Directory
(2) Modify the configuration file
modify /usr/local/solr/server/solr/testcore/conf/managed-schema
# vim /usr/local/solr/server/solr/testcore/conf/managed-schema
(3) Add the following
<field name="myfield" type="text_ik" indexed="true" stored="true" />
<fieldType name="text_ik" class="solr.TextField">
<analyzer type="index">
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" useSmart="false" conf="ik.conf"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" useSmart="true" conf="ik.conf"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
(4) restart
# cd /usr/local/solr/bin
# ./solr stop -all
# ./solr start -force
(5) verification
Set before :
After setting :
边栏推荐
- Codeforces Round #771 (Div. 2)
- (lightoj - 1236) pairs forming LCM (prime unique decomposition theorem)
- Research Report on hearing health care equipment industry - market status analysis and development prospect prediction
- ~86m rabbit practice
- 音视频开发面试题
- (POJ - 1458) common subsequence (longest common subsequence)
- Usage of insert() in vector
- 第5章 消费者组详解
- 7-4 harmonic average
- LeetCode 1552. Magnetic force between two balls
猜你喜欢
Two weeks' experience of intermediate software designer in the crash soft exam
js封装数组反转的方法--冯浩的博客
第三章 MapReduce框架原理
第5章 消费者组详解
Submit several problem records of spark application (sparklauncher with cluster deploy mode)
Record the error reason: terminate called after throwing an instance
【锟斤拷】的故事:谈谈汉字编码和常用字符集
ByteDance new programmer's growth secret: those glittering treasures mentors
新手必会的静态站点生成器——Gridsome
Chapter 5 yarn resource scheduler
随机推荐
~84 form supplement
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
Research Report on market supply and demand and strategy of China's four flat leadless (QFN) packaging industry
图像处理一百题(1-10)
LeetCode 1566. Repeat the pattern with length m at least k times
软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客
~83 form introduction
China tetrabutyl urea (TBU) market trend report, technical dynamic innovation and market forecast
Error: case label `15 'not within a switch statement
sublime text 代码格式化操作
The concept of spark independent cluster worker and executor
Codeforces Round #771 (Div. 2)
Tert butyl hydroquinone (TBHQ) Industry Research Report - market status analysis and development prospect forecast
Cmake error: could not create named generator visual studio 16 2019 solution
Log statistics (double pointer)
~78 radial gradient
LeetCode 1637. The widest vertical area between two points without any point
Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)
Ffmpeg command line use
Chapter 5 namenode and secondarynamenode