简体   繁体   English

AWS CloudSearch是否允许在同一查询中搜索多个域?

[英]Does AWS CloudSearch allow searching multiple domains in the same query?

My team's application has numerous data types across 11 tables in our application database. 我的团队的应用程序在我们的应用程序数据库中的11个表中有许多数据类型。 To implement an efficient keyword search across specific fields on all of these types, we are exploring AWS CloudSearch as one option. 为了在所有这些类型的特定字段上实现有效的关键字搜索,我们正在探索AWS CloudSearch作为一个选项。 Our intention is to return relevant results across all record types for a given keyword search. 我们的目的是为给定的关键字搜索返回所有记录类型的相关结果。

My understanding is that each record type (each table) would end up in a separate CloudSearch domain. 我的理解是每个记录类型(每个表)最终都会在一个单独的CloudSearch域中。 If that is the case, does the service allow for a search across multiple domains? 如果是这种情况,该服务是否允许跨多个域进行搜索? Or would multiple requests need to be submitted and combined after they return? 或者在返回后需要提交和合并多个请求?

Please correct me if I am mistaken at any point above. 如果我在上面的任何一点上弄错了,请纠正我。 I have searched the CloudSearch documentation generally for a hint about this, but have not come to any conclusion. 我一般都在搜索CloudSearch文档以获取有关此内容的提示,但尚未得出任何结论。

Side Notes: 附注:

Our alternative is a non-self-hosted ElasticSearch service, which would solve this problem. 我们的替代方案是非自托管的ElasticSearch服务,它可以解决这个问题。 However, our application ecosystem is currently hosted exclusively within a handful of AWS services. 但是,我们的应用程序生态系统目前仅在少数AWS服务中托管。 The advantages and disadvantages to CloudSearch vs ElasticSearch are unclear in this regard. 在这方面,CloudSearch与ElasticSearch的优缺点尚不清楚。 If an endorsement can be made with a technical reason relating to the above, I would appreciate it. 如果可以通过与上述相关的技术原因作出认可,我将不胜感激。 Though, I respect that this is not the place for a general pros vs cons discussion. 虽然,我尊重这不是一般的专业与利弊讨论的地方。

Yes, it's true that you can only query data from a single domain, where a domain is a data structure. 是的,您确实只能查询来自单个域的数据,其中域是数据结构。

However, you could flatten all the tables into a single domain, add a "type" index field, and when querying add the specific type as a filter. 但是,您可以将所有表拼合为单个域,添加“类型”索引字段,并在查询时将特定类型添加为过滤器。

不,每个Cloudsearch查询都针对单个域中的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM