使用netstat -lntp来看看有侦听在网络某端口的进程。当然,也可以使用 lsof。

ES6.3.0英文分词问题

Elasticsearch | 作者 aimerwhy | 发布于2018年08月10日 | 阅读数:4544

我的ES6.3.0使用了IK分词器,对英文支持不友好,表现为:
1.能搜索大部分英文,某些单词比如to、for、in等搜索不到;
2.我在ik配置文件中添加了26个字母,但是26个字母中搜索不到a这个字母,其他25个可以
请教一下应该怎么解决?
已邀请:

strglee

赞同来自:

https://github.com/medcl/elast ... d.dic
这个文件是ik分词的停词 从里面去掉就好了 

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

英文使用:analyzer分词器就可以了。

rochy - rochy_he

赞同来自:

应该是停用词的问题
1. 你可以选择关闭停用词;
2. 设置分词器模式为:ik_max_word

aimerwhy - 追求入门

赞同来自:

谢谢大家的热情解答。我关闭停用词解决了问题!
停用词:
a
an
and
are
as
at
be
but
by
for
if
in
into
is
it
no
not
of
on
or
such
that
the
their
then
there
these
they
this
to
was
will
with
 

要回复问题请先登录注册