当前位置:网站首页>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 :
边栏推荐
- Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
- LeetCode 1561. The maximum number of coins you can get
- ~83 form introduction
- [unsolved]7-14 calculation diagram
- MP4格式详解
- Research Report on market supply and demand and strategy of China's four seasons tent industry
- Research Report on market supply and demand and strategy of double drum magnetic separator industry in China
- Soft music -js find the number of times that character appears in the string - Feng Hao's blog
- ~76 sprite map
- SF smart logistics Campus Technology Challenge (no T4)
猜你喜欢
第6章 DataNode
Usage of insert() in vector
Mp4 format details
Hbuilder X格式化快捷键设置
~81 long table
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
音视频开发面试题
ByteDance new programmer's growth secret: those glittering treasures mentors
LeetCode 1560. The sector with the most passes on the circular track
业务系统从Oracle迁移到openGauss数据库的简单记录
随机推荐
Base dice (dynamic programming + matrix fast power)
Gridhome, a static site generator that novices must know
Summary of game theory
~76 sprite map
(lightoj - 1370) Bi shoe and phi shoe (Euler function tabulation)
Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
Research Report of desktop clinical chemical analyzer industry - market status analysis and development prospect prediction
腾讯面试算法题
7-6 sum of combinatorial numbers
Cmake Express
LeetCode 1551. Minimum operand to make all elements in the array equal
Research Report on market supply and demand and strategy of Chinese table lamp industry
Codeforces Global Round 19
LeetCode 1641. Count the number of Lexicographic vowel strings
音视频开发面试题
The concept of spark independent cluster worker and executor
原生js实现全选和反选的功能 --冯浩的博客
Spark独立集群Worker和Executor的概念
Chapter 5 detailed explanation of consumer groups
Investigation report of bench type Brinell hardness tester industry - market status analysis and development prospect prediction