将 Azure 搜索与 DocumentDB 结合使用
Using Azure Search with DocumentDB
如果 DocumentDB 可以自己做索引,而 Azure Search 也可以做索引,那我为什么要一起使用它们呢?有任何用例吗?
此外,使用 DocumentDB 已经很昂贵了,如果我将 Azure 搜索与它一起使用,这对我的 DocumentDB 性能和成本有何影响?
DocumentDB 作为通用 文档数据库 大放异彩,而 Azure 搜索作为 全文搜索 (FTS) 引擎大放异彩。
例如,Azure 搜索提供:
- Linguistically-aware indexing and search that takes into account word forms (e.g., singular vs. plural, verb tenses, and many other kinds of grammatical inflections) in ~60 languages。
- 高质量词形还原和分词。例如,分词中文很难,因为白色space是可选的
- 同义词
- 邻近搜索、相似发音搜索 (soundex / metaphone)、使用 Lucene query syntax
的通配符和正则表达式搜索
- 可自定义的排名,以便您可以提升较新的文档,例如
- 建议
- ...许多其他文本处理和自然语言相关的功能
如果您只需要简单的数字筛选器或精确的字符串比较,只需使用 DocumentDB。
如果您需要对某些内容进行自然语言搜索,请将 Azure 搜索与 DocumentDB 结合使用。使用 DocumentDB indexer.
连接它们很容易
就成本影响而言,将 Azure 搜索与 DocumentDB 结合使用不会改变 DocumentDB 的成本。如果您使用 DocumentDB 索引器,它会消耗一定数量的读取单元——多少取决于您的数据和您使用的查询,以及您的索引计划。
如果 DocumentDB 可以自己做索引,而 Azure Search 也可以做索引,那我为什么要一起使用它们呢?有任何用例吗?
此外,使用 DocumentDB 已经很昂贵了,如果我将 Azure 搜索与它一起使用,这对我的 DocumentDB 性能和成本有何影响?
DocumentDB 作为通用 文档数据库 大放异彩,而 Azure 搜索作为 全文搜索 (FTS) 引擎大放异彩。
例如,Azure 搜索提供:
- Linguistically-aware indexing and search that takes into account word forms (e.g., singular vs. plural, verb tenses, and many other kinds of grammatical inflections) in ~60 languages。
- 高质量词形还原和分词。例如,分词中文很难,因为白色space是可选的
- 同义词
- 邻近搜索、相似发音搜索 (soundex / metaphone)、使用 Lucene query syntax 的通配符和正则表达式搜索
- 可自定义的排名,以便您可以提升较新的文档,例如
- 建议
- ...许多其他文本处理和自然语言相关的功能
如果您只需要简单的数字筛选器或精确的字符串比较,只需使用 DocumentDB。
如果您需要对某些内容进行自然语言搜索,请将 Azure 搜索与 DocumentDB 结合使用。使用 DocumentDB indexer.
连接它们很容易就成本影响而言,将 Azure 搜索与 DocumentDB 结合使用不会改变 DocumentDB 的成本。如果您使用 DocumentDB 索引器,它会消耗一定数量的读取单元——多少取决于您的数据和您使用的查询,以及您的索引计划。