搜索引擎 请教大家 ES 在 Rails 里怎么添加账号密码进行链接

ghn645568344 · 2016年12月06日 · 最后由 mimosa 回复于 2016年12月06日 · 7220 次阅读

RT,ES 在 rails 里,怎么添加账号密码,进行链接访问 用 X-Pack 加了密,现在无法访问一直报

[401] {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/es_users/es_user/AVjOhZWLvFIJagtSUp6r]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"missing authentication token for REST request [/es_users/es_user/AVjOhZWLvFIJagtSUp6r]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}

很郁闷 到处查了,也没找到怎么再 rails 中配置这些相关数据。。。。😭 请教大家了

通过 elasticsearch-transport 和 自定义 faraday middleware

PS:专修各种🐛,150 起~

需要 登录 后方可回复, 如果你还没有账号请 注册新账号