返回两个来自Elasticsearch的结果吗?
我有一个导轨应用程序,每个用户创建索引,每个索引包含文档,每个文档包含一个用户配置文件,profile_id是唯一的,在我的情况下,用户可以更新他的个人资料,在我的系统中,我创建的索引假设今天是用户创建的带有名字“ rose”的个人资料,第二天决定将他的个人资料和姓氏更新为他的个人资料,当用户搜索用户搜索时,我需要返回两个文档,如果用户想搜索姓氏弹性返回所有文档,则需要包含用户配置文件。
有人知道弹性搜索中的查询是什么吗?
I have a rails app and per user create indexes, each index contains documents and each document contains a user profile, profile_id is unique per user, In my case user could update his profile and in my system, I created indexes assume today user-created profile with the first name "rose" and next day decide to update his profile and last name to his profile I need to return both documents when user search, In another word I need if the user wants to search first name elastic return all documents that contain user profiles.
Does anyone know what is query in elastic search?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论