Azure SQL DB 与 Azure 搜索的自动索引/同步如何工作?

Ily*_*s F 5 azure azure-cognitive-search azure-sql-database

根据以下文章,

http://feedback.azure.com/forums/263029-azure-search/suggestions/6540846-auto-indexing-of-azure-sql-db

https://azure.microsoft.com/en-us/documentation/articles/search-howto-connecting-azure-sql-database-to-azure-search-using-indexers-2015-02-28/

Azure 搜索将自动同步/更新 SQL 表中修改后的行,并在 Azure 搜索索引中更新相同的行。但是当我更新源表时,它似乎根本不影响我的 Azure 搜索索引。

任何人都可以澄清使用 Azure 搜索自动索引/同步 Azure SQL DB 的真正含义是什么?

注意:严格按照文章中给出的说明进行操作。

数据源

POST https://servicename.search.windows.net/datasources?api-version=2015-02-28 api-key: <> Content-Type: application/json

{ "name": "myazuresqldatasource", "type": "azuresql", "credentials": { "connectionString": "Server=tcp:xxxxyyyy.database.windows.net.database.windows.net,1433;Database=dvdlist ;User ID=aaaabbbb;Password=aaaaabbbbb;Trusted_Connection=True;Encrypt=False;Connection Timeout=30;"}, "container" : { "name" : "dvdlist" }, "dataChangeDetectionPolicy" : { "@odata.type “:“#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy”,“highWaterMarkColumnName”:“id”},“dataDeletionDetectionPolicy”:{“@odata.type”:“#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy”,“softDeleteColumnName”:“已删除", "softDeleteMarkerValue": "true" } }

索引器

POST https://servicename.search.windows.net/indexers?api-version=2015-02-28 api-key: <> Content-Type: application/json

{“名称”:“myazuresqlindexer”,“dataSourceName”:“myazuresqldatasource”,“targetIndexName”:“sqlazureindex”}

小智 -1

基本上,在 Azure 搜索上,我们必须使用特定列创建索引,并且需要不时使用调度程序将数据以定义的索引格式推送到 Azure 搜索索引上。

Azure SQL DB 与 Azure 搜索的自动索引/同步是一种使此过程变得简单且易于管理的技术,其中 Azure sql 负责管理同步过程。