

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 创建基于规则的匹配工作流程
<a name="creating-matching-workflow-rule-based"></a>

*[基于规则的匹配](glossary.md#rule-based-matching-defn)*是一组分层的瀑布匹配规则 AWS Entity Resolution 数据匹配服务，由您根据输入的数据推荐，并且完全可以由您配置。基于规则的匹配工作流程使您可以比较明文数据或哈希数据，以根据您自定义的条件找到精确的匹配项。

在您的数据中 AWS Entity Resolution 数据匹配服务 发现两条或多条记录之间存在匹配项时，它会分配：
+ 与[匹配数据集中的记录的匹配 ID](glossary.md#match-id-defin)
+ 生成[匹配项的匹配规则](glossary.md#match-rule-defn)。

在中创建基于规则的匹配工作流程时 AWS Entity Resolution 数据匹配服务，必须选择 “**简单**” 或 “**高级” 规则类型**。规则类型决定了您可以创建的规则条件的复杂性。创建工作流程后，您无法更改规则类型。

您可以使用下表来比较两种**规则类型**，并确定哪一种适合您的用例。


**规则类型对比图**  

| 使用案例 | 高级规则类型 | 简单规则类型 | 
| --- |--- |--- |
|  one-to-one使用输入类型映射的架构映射 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/success_icon.png) 是 | 否 | 
| --- |--- |--- |
| 将多个数据列映射到相同输入类型的架构映射 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/negative_icon.png)没有 | 是 | 
| --- |--- |--- |
| 支持精确匹配和模糊匹配 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/success_icon.png) 是 | 否（仅限精确匹配） | 
| --- |--- |--- |
| 支持 AND、OR 和圆括号运算符 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/success_icon.png) 是 | 否（仅限 AND 运算符） | 
| --- |--- |--- |
| 支持批处理工作流程 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/success_icon.png) 是 | 是 | 
| --- |--- |--- |
| 支持增量工作流程 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/success_icon.png) 是 | 是 | 
| --- |--- |--- |
| 支持实时工作流程 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/negative_icon.png)否 | 是 | 
| --- |--- |--- |
| 支持 ID 映射工作流程 | ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/images/negative_icon.png)没有 | 是 | 
| --- |--- |--- |

确定要使用哪种规则类型后，请使用以下主题创建基于规则的匹配工作流程，其中包括 “**高级**” 或 “**简单**” 规则类型。

**Topics**
+ [使用高级规则类型创建基于规则的匹配工作流](rule-based-mw-advanced.md)
+ [使用 “简单” 规则类型创建基于规则的匹配工作流程](rule-based-mw-simple.md)