case insensitive search in elasticsearch

旧时模样 提交于 2019-12-12 12:45:09

问题


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

but i am getting following error {"error":"RemoteTransportException[[Banner, Robert Bruce][inet[/192.168.1.15:9300]][indices/create]]; nested: MapperParsingException[mapping [type1]]; nested: MapperParsingException[Analyzer [string_lowercase] not found 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.


回答1:


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.



来源:https://stackoverflow.com/questions/11638676/case-insensitive-search-in-elasticsearch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!