Elasticsearch中不区分大小写的搜索 [英] case insensitive search in elasticsearch

查看:820
本文介绍了Elasticsearch中不区分大小写的搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在elasticsearch.yml文件中创建一个条目,以创建与要点中所述相同的自定义分析器: https://gist.github.com/1403902

I have tried making an entry in the elasticsearch.yml file to create the custom analyser for the same as mentioned in the gist: https://gist.github.com/1403902

但我遇到以下错误
{错误: RemoteTransportException [[横幅,罗伯特·布鲁斯] [inet [/192.168.1.15:9300]] [索引/创建]];嵌套:MapperParsingException [映射[type1]];嵌套:MapperParsingException [分析器[string_lowercase]未找到for field [field1]];

我仍然不知道该怎么做。对于相同且得到相似答复(如上述要点所述)

I am still not able to figure out how to do this. I have searched stackoverflow for the same and got similar replies (as mentioned in the gist mentioned above)

请提供一个示例,我可以测试。

please provide me an example, that i can test.

推荐答案

由于配置文件仅在启动时只读,因此要使更改生效,您需要重新启动elasticsearch集群。您可以使用关闭API ,或者干脆使用kill命令杀死elasticsearch进程。

Since config file is read only on startup, for the changes to take effect, you need to restart the elasticsearch cluster. You can use Shutdown API for that, or simply kill elasticsearch processes using kill command.

这篇关于Elasticsearch中不区分大小写的搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆