analysis-ik icon indicating copy to clipboard operation
analysis-ik copied to clipboard

如何在一个ES实例下根据不同的Index指定不同的扩展词词典和Stopwords?

Open simonw0ng opened this issue 7 years ago • 9 comments

假设一个ES实例中有商品和文章两种index,是否有方法分别为商品和文章指定各自的扩展词词典和停用词词典?

simonw0ng avatar Sep 29 '16 07:09 simonw0ng

@medcl 这个问题有什么好的方法不?

pancz avatar Oct 08 '16 08:10 pancz

可以通过定义index的mapping结构来指定单个字段所需要的分词器

yangtp avatar Oct 23 '16 04:10 yangtp

@yangtp 我指的是词典

simonw0ng avatar Nov 24 '16 03:11 simonw0ng

现在应该做不到

hufuman avatar Jan 12 '17 01:01 hufuman

+1 有没有比较好的实现

leaxoy avatar Jan 20 '17 11:01 leaxoy

我看现在的实现,需要给ES创建两个IK插件,可能要改代码才可以。现有的机制是不支持的。

hufuman avatar Jan 22 '17 04:01 hufuman

多机器部署不就行了

xxllp avatar Apr 05 '17 08:04 xxllp

#130 (How to transfer parameter "index name " from ES to IK) 这个issue也提到过这个问题,可能要实现的话还是要改代码... 请问能不能在接下来的版本里实现支持这种config? 比如这样: <entry key="ext_dict" index="one_index">custom/dict4index.dic;</entry>

dc3671 avatar Apr 28 '17 11:04 dc3671

https://github.com/medcl/elasticsearch-analysis-ik/pull/938

lanicc avatar Apr 04 '22 13:04 lanicc