返回两个来自Elasticsearch的结果吗?

发布于 2025-02-04 23:20:29 字数 224 浏览 2 评论 0原文

我有一个导轨应用程序,每个用户创建索引,每个索引包含文档,每个文档包含一个用户配置文件,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文