2017-07-24 26 views
1

我创建一个应用程序,我需要调用REST API来创建数据源相关这里提到: https://docs.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage如何通过邮递员调用REST API在Azure中创建索引?

下面是我提出我的要求:

enter image description here

我得到以下错误:

{ 
    "error": { 
     "code": "", 
     "message": "The request is invalid. Details: index : The property 'type' does not exist on type 'Microsoft.Azure.Search.V2016_09_01.IndexDefinition'. Make sure to only use property names that are defined by the type.\r\n" 
    } 
} 

我该怎么做才能使'type'设置正确?

+1

你想创建一个数据源或索引?您的请求正文用于创建数据源。另外,请停止在其他问题上标记我。 –

+0

如果您尝试“创建数据源”,那么您将发布到错误的URL。 https:// [服务名称] .search.windows.net/datasources?api-version = 2016-09-01 –

+0

@GauravMantri好吧,不会在任何其他地方标记你。谢谢,刚刚得到了错误的解决方案。 –

回答

2

你张贴到了错误的URL尝试以下

https://[service name].search.windows.net/datasources?api-version=2016-09-01 
相关问题