This repository has been archived by the owner on Jul 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 715
请问怎么设置默认的ik分词? #59
Comments
看最新的readme
Chen Botao <notifications@github.com>于2017年3月31日 周五下午5:46写道:
… 在elasticsearch.yml添加index.analysis.analyzer.ik.type : “ik”后出现如下提示:
Since elasticsearch 5.x index level settings can NOT be set on the nodes
configuration like the elasticsearch.yaml, in system properties or command line
arguments.In order to upgrade all indices the settings must be updated via the
/${index}/_settings API. Unless all settings are dynamic all indices must be closed
in order to apply the upgradeIndices created in the future should use index templates
to set default values.
Please ensure all required values are updated on all indices by executing:
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
"index.analysis.analyzer.ik.type" : "“ik”"
}'
然而在自动elasticsearch之后,curl -XPUT '
http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
"index.analysis.analyzer.ik.type" : "“ik”" 也没有用,提示:
$ curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
> "index.analysis.analyzer.ik.type" : "“ik”"
> }'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 445 100 395 100 50 5064 641 --:--:-- --:--:-- --:--:-- 6269{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Can't update non dynamic settings [[index.analysis.analyzer.ik.type]] for open indices [[flask_reminders/di-2kgxaQuegxc6Qbo2P-Q]]"}],"type":"illegal_argument_exception","reason":"Can't update non dynamic settings [[index.analysis.analyzer.ik.type]] for open indices [[flask_reminders/di-2kgxaQuegxc6Qbo2P-Q]]"},"status":400}
谢谢了~
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#59>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD757svEgpwY-p6zuf_LE8tHIkqNrpNks5rrMtugaJpZM4Mvc4K>
.
|
你好,es后来的版本不支持在y m l文件中配置分词器。你可以*详细阅读i*k插件的官网使用说明。
2017-03-31 19:26 GMT+08:00 Medcl <notifications@github.com>:
… 看最新的readme
Chen Botao ***@***.***>于2017年3月31日 周五下午5:46写道:
> 在elasticsearch.yml添加index.analysis.analyzer.ik.type : “ik”后出现如下提示:
>
>
> Since elasticsearch 5.x index level settings can NOT be set on the nodes
> configuration like the elasticsearch.yaml, in system properties or
command line
> arguments.In order to upgrade all indices the settings must be updated
via the
> /${index}/_settings API. Unless all settings are dynamic all indices
must be closed
> in order to apply the upgradeIndices created in the future should use
index templates
> to set default values.
>
> Please ensure all required values are updated on all indices by
executing:
>
> curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true'
-d '{
> "index.analysis.analyzer.ik.type" : "“ik”"
> }'
>
> 然而在自动elasticsearch之后,curl -XPUT '
> http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
> "index.analysis.analyzer.ik.type" : "“ik”" 也没有用,提示:
>
> $ curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=
true' -d '{
> > "index.analysis.analyzer.ik.type" : "“ik”"
> > }'
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 445 100 395 100 50 5064 641 --:--:-- --:--:-- --:--:--
6269{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Can't
update non dynamic settings [[index.analysis.analyzer.ik.type]] for open
indices [[flask_reminders/di-2kgxaQuegxc6Qbo2P-Q]]"}],"
type":"illegal_argument_exception","reason":"Can't update non dynamic
settings [[index.analysis.analyzer.ik.type]] for open indices
[[flask_reminders/di-2kgxaQuegxc6Qbo2P-Q]]"},"status":400}
>
> 谢谢了~
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#59>, or mute the
thread
> <https://github.com/notifications/unsubscribe-auth/AAD757svEgpwY-p6zuf_
LE8tHIkqNrpNks5rrMtugaJpZM4Mvc4K>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AO51ft9j2sFRG4hEX_Or9BfZ3KVyefQRks5rrOLmgaJpZM4Mvc4K>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
在elasticsearch.yml添加
index.analysis.analyzer.ik.type : “ik”
后出现如下提示:然而在自动elasticsearch之后,
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{ "index.analysis.analyzer.ik.type" : "“ik”"
也没有用,提示:谢谢了~
The text was updated successfully, but these errors were encountered: