当前位置:网站首页>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 :

边栏推荐
- 我在字节跳动「修电影」
- Solve the problem that intel12 generation core CPU single thread only runs on small cores
- Continue and break jump out of multiple loops
- Mp4 format details
- 字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们
- MP4格式详解
- Base dice (dynamic programming + matrix fast power)
- Summary of game theory
- 第6章 DataNode
- Tree of life (tree DP)
猜你喜欢

LeetCode 1557. The minimum number of points that can reach all points

7-10 punch in strategy

CMake速成

Simple records of business system migration from Oracle to opengauss database

Spark独立集群动态上线下线Worker节点

FLV格式详解
![[unsolved]7-14 calculation diagram](/img/33/39802c0106f2bef4b9979e5ae12b83.jpg)
[unsolved]7-14 calculation diagram

第五章 Yarn资源调度器

One hundred questions of image processing (1-10)

Spark独立集群Worker和Executor的概念
随机推荐
FLV格式详解
Hbuilder X格式化快捷键设置
腾讯面试算法题
7-12 inventory code base
Spark的RDD(弹性分布式数据集)返回大结果集
LeetCode 1545. Find the k-th bit in the nth binary string
Base dice (dynamic programming + matrix fast power)
LeetCode 1637. The widest vertical area between two points without any point
Research Report of desktop clinical chemical analyzer industry - market status analysis and development prospect prediction
(POJ - 3186) treatments for the cows (interval DP)
解决Intel12代酷睿CPU单线程调度问题(二)
China tetrabutyl urea (TBU) market trend report, technical dynamic innovation and market forecast
LeetCode 1560. The sector with the most passes on the circular track
7-8 likes (need to continue to improve)
~78 radial gradient
LeetCode 1584. Minimum cost of connecting all points
解决Intel12代酷睿CPU单线程只给小核运行的问题
string. How to choose h and string and CString
LeetCode 1636. Sort the array in ascending order by frequency
LeetCode 1552. Magnetic force between two balls