博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
solr6.6 配置同义词
阅读量:6121 次
发布时间:2019-06-21

本文共 1410 字,大约阅读时间需要 4 分钟。

  1、配置managed-schema

  2、同义词文件synonyms-cn.txt

  

# The ASF licenses this file to You under the Apache License, Version 2.0# (the "License"); you may not use this file except in compliance with# the License.  You may obtain a copy of the License at##     http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.#-----------------------------------------------------------------------#some test synonym mappings unlikely to appear in real input textaaafoo => aaabarbbbfoo => bbbfoo bbbbarcccfoo => cccbar cccbazfooaaa,baraaa,bazaaa# Some synonym groups specific to this exampleGB,gib,gigabyte,gigabytesMB,mib,megabyte,megabytesTelevision, Televisions, TV, TVs#notice we use "gib" instead of "GiB" so any WordDelimiterGraphFilter coming#after us won't split it into two words.# Synonym mappings can be used for spelling correction toopixima => pixmaideapad,ideacenter,lenovo,联想china,中国,中华人民共和国,华夏,中国大陆

 下面两种方式都可以

联想,ideapad,ideacenter,lenovo
联想 => ideapad,ideacenter,lenovo

 

  3、索引文件搜索

    

    

    

 

 

 

 

 

转载于:https://www.cnblogs.com/shaosks/p/8065431.html

你可能感兴趣的文章
洛谷4147:玉蟾宫——题解
查看>>
tomcat 调优
查看>>
快速部署Python应用:Nginx+uWSGI配置详解
查看>>
js操纵css样式
查看>>
[转] 理解CheckPoint及其在Tensorflow & Keras & Pytorch中的使用
查看>>
第一次作业-准备篇
查看>>
C#.NET的微信功能开发学习
查看>>
第2章 传统与敏捷方法论
查看>>
oracle的本地远程连接和配置
查看>>
jsp的内置对象
查看>>
memCached的配置文件 配置
查看>>
leetcode刷题第一天
查看>>
spring中bean标签factory-method和factory-bean)详解工厂方法(factory-method和factory-bean)
查看>>
set_uid set_gid stick_bit 软硬链接
查看>>
poi操作Excel的封装类
查看>>
简明Python3教程 8.控制流
查看>>
牛客网暑期ACM多校训练营(第二场)K carpet
查看>>
HTTP协议
查看>>
F2FS readblock PNG图片文件头不正确问题
查看>>
iOS任何界面全屏炫酷倒计时,一句代码就够了
查看>>