diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateDataSource.json index 8999bd3497b8..30599dc68731 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateDataSource.json @@ -6,7 +6,7 @@ "dataSource": { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": "AccountEndpoint=https://myDocDbEndpoint.documents.azure.com;AccountKey=myDocDbAuthKey;Database=myDocDbDatabaseId" }, @@ -30,7 +30,7 @@ "body": { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": null }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndex.json index b15839baf7a2..053aadee4772 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndex.json @@ -174,7 +174,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": "fr.lucene", - "synonymMaps": [] + "synonymMaps": [] }, { "name": "hotelName", @@ -286,7 +286,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": null, - "synonymMaps": [] + "synonymMaps": [] } ], "scoringProfiles": [ diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndexer.json index 1e165d24da24..879a9eb7232f 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateIndexer.json @@ -4,31 +4,31 @@ "searchDnsSuffix": "search.windows.net", "api-version": "2017-11-11-Preview", "indexer": { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 - } + } } }, "responses": { "201": { "body": { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateDataSource.json index b41ab3a73b5e..7bc1b1569c37 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateDataSource.json @@ -8,7 +8,7 @@ "dataSource": { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": "AccountEndpoint=https://myDocDbEndpoint.documents.azure.com;AccountKey=myDocDbAuthKey;Database=myDocDbDatabaseId" }, @@ -32,7 +32,7 @@ "body": { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": null }, @@ -55,7 +55,7 @@ "body": { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": null }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndex.json index a7a35c5a240e..1b0cc7864fa8 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndex.json @@ -177,7 +177,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": "fr.lucene", - "synonymMaps": [] + "synonymMaps": [] }, { "name": "hotelName", @@ -289,7 +289,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": null, - "synonymMaps": [] + "synonymMaps": [] } ], "scoringProfiles": [ @@ -403,7 +403,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": "fr.lucene", - "synonymMaps": [] + "synonymMaps": [] }, { "name": "hotelName", @@ -515,7 +515,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": null, - "synonymMaps": [] + "synonymMaps": [] } ], "scoringProfiles": [ diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndexer.json index 6872817d70cc..ba71754f5761 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateIndexer.json @@ -6,31 +6,31 @@ "api-version": "2017-11-11-Preview", "Prefer": "return=representation", "indexer": { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 - } + } } }, "responses": { "200": { "body": { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 @@ -41,14 +41,14 @@ }, "201": { "body": { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json index d9a5fe8227b1..566ed29eca73 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json @@ -8,212 +8,272 @@ "skillset": { "name": "demoskillset", "description": "Extract entities, detect language and extract key-phrases", - "skills": [{ - "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", - "categories": ["organization"], - "defaultLanguageCode": "en", - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "organizations", - "targetName": "organizations" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "languageCode", - "targetName": "languageCode" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.SplitSkill", - "textSplitMode": "pages", - "maximumPageLength": 4000, - "inputs": [{ - "name": "text", - "source": "/document/content" - }, - { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "textItems", - "targetName": "pages" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", - "context": "/document/pages/*", - "inputs": [{ - "name": "text", - "source": "/document/pages/*" - }, + "skills": [ { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "keyPhrases", - "targetName": "keyPhrases" - }] - }] - } - }, - "responses": { - "200": { - "body": { - "name": "demoskillset", - "description": "Extract entities, detect language and extract key-phrases", - "skills": [{ "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "organizations", - "targetName": "organizations" - }], - "categories": ["organization"], + "categories": [ + "organization" + ], "defaultLanguageCode": "en", - "minimumPrecision": null + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "organizations", + "targetName": "organizations" + } + ] }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "languageCode", - "targetName": "languageCode" - }] + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "languageCode", + "targetName": "languageCode" + } + ] }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }, - { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "textItems", - "targetName": "pages" - }], - "defaultLanguageCode": null, "textSplitMode": "pages", - "maximumPageLength": 4000 + "maximumPageLength": 4000, + "inputs": [ + { + "name": "text", + "source": "/document/content" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "textItems", + "targetName": "pages" + } + ] }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", - "description": null, "context": "/document/pages/*", - "inputs": [{ - "name": "text", - "source": "/document/pages/*" + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "keyPhrases", + "targetName": "keyPhrases" + } + ] + } + ] + } + }, + "responses": { + "200": { + "body": { + "name": "demoskillset", + "description": "Extract entities, detect language and extract key-phrases", + "skills": [ + { + "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "organizations", + "targetName": "organizations" + } + ], + "categories": [ + "organization" + ], + "defaultLanguageCode": "en", + "minimumPrecision": null }, { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "keyPhrases", - "targetName": "keyPhrases" - }], - "defaultLanguageCode": null, - "maxKeyPhraseCount": null - }] + "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "languageCode", + "targetName": "languageCode" + } + ] + }, + { + "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "textItems", + "targetName": "pages" + } + ], + "defaultLanguageCode": null, + "textSplitMode": "pages", + "maximumPageLength": 4000 + }, + { + "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "description": null, + "context": "/document/pages/*", + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "keyPhrases", + "targetName": "keyPhrases" + } + ], + "defaultLanguageCode": null, + "maxKeyPhraseCount": null + } + ] } }, "201": { "body": { "name": "demoskillset", "description": "Extract entities, detect language and extract key-phrases", - "skills": [{ - "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "organizations", - "targetName": "organizations" - }], - "categories": ["organization"], - "defaultLanguageCode": "en", - "minimumPrecision": null - }, - { - "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "languageCode", - "targetName": "languageCode" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.SplitSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" + "skills": [ + { + "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "organizations", + "targetName": "organizations" + } + ], + "categories": [ + "organization" + ], + "defaultLanguageCode": "en", + "minimumPrecision": null }, { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "textItems", - "targetName": "pages" - }], - "defaultLanguageCode": null, - "textSplitMode": "pages", - "maximumPageLength": 4000 - }, - { - "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", - "description": null, - "context": "/document/pages/*", - "inputs": [{ - "name": "text", - "source": "/document/pages/*" + "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "languageCode", + "targetName": "languageCode" + } + ] + }, + { + "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "textItems", + "targetName": "pages" + } + ], + "defaultLanguageCode": null, + "textSplitMode": "pages", + "maximumPageLength": 4000 }, { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "keyPhrases", - "targetName": "keyPhrases" - }], - "defaultLanguageCode": null, - "maxKeyPhraseCount": null - }] + "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "description": null, + "context": "/document/pages/*", + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "keyPhrases", + "targetName": "keyPhrases" + } + ], + "defaultLanguageCode": null, + "maxKeyPhraseCount": null + } + ] } } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json index 3e0a18c3407b..f7b3a5a5e546 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json @@ -5,26 +5,26 @@ "synonymMapName": "mysynonymmap", "api-version": "2017-11-11-Preview", "Prefer": "return=representation", - "synonymMap": { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" - } + "synonymMap": { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" + } }, "responses": { "200": { - "body": { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" - } + "body": { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" + } }, "201": { - "body": { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" - } + "body": { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" + } } } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json index dc5420495b7a..bfa45940f65b 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json @@ -8,138 +8,178 @@ "skillset": { "name": "demoskillset", "description": "Extract entities, detect language and extract key-phrases", - "skills": [{ - "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", - "categories": ["organization"], - "defaultLanguageCode": "en", - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "organizations", - "targetName": "organizations" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "languageCode", - "targetName": "languageCode" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.SplitSkill", - "textSplitMode": "pages", - "maximumPageLength": 4000, - "inputs": [{ - "name": "text", - "source": "/document/content" - }, - { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "textItems", - "targetName": "pages" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", - "context": "/document/pages/*", - "inputs": [{ - "name": "text", - "source": "/document/pages/*" - }, + "skills": [ { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "keyPhrases", - "targetName": "keyPhrases" - }] - }] - } - }, - "responses": { - "201": { - "body": { - "name": "demoskillset", - "description": "Extract entities, detect language and extract key-phrases", - "skills": [{ "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "organizations", - "targetName": "organizations" - }], - "categories": ["organization"], + "categories": [ + "organization" + ], "defaultLanguageCode": "en", - "minimumPrecision": null + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "organizations", + "targetName": "organizations" + } + ] }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "languageCode", - "targetName": "languageCode" - }] + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "languageCode", + "targetName": "languageCode" + } + ] }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }, - { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "textItems", - "targetName": "pages" - }], - "defaultLanguageCode": null, "textSplitMode": "pages", - "maximumPageLength": 4000 + "maximumPageLength": 4000, + "inputs": [ + { + "name": "text", + "source": "/document/content" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "textItems", + "targetName": "pages" + } + ] }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", - "description": null, "context": "/document/pages/*", - "inputs": [{ - "name": "text", - "source": "/document/pages/*" + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "keyPhrases", + "targetName": "keyPhrases" + } + ] + } + ] + } + }, + "responses": { + "201": { + "body": { + "name": "demoskillset", + "description": "Extract entities, detect language and extract key-phrases", + "skills": [ + { + "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "organizations", + "targetName": "organizations" + } + ], + "categories": [ + "organization" + ], + "defaultLanguageCode": "en", + "minimumPrecision": null + }, + { + "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "languageCode", + "targetName": "languageCode" + } + ] + }, + { + "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "textItems", + "targetName": "pages" + } + ], + "defaultLanguageCode": null, + "textSplitMode": "pages", + "maximumPageLength": 4000 }, { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "keyPhrases", - "targetName": "keyPhrases" - }], - "defaultLanguageCode": null, - "maxKeyPhraseCount": null - }] + "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "description": null, + "context": "/document/pages/*", + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "keyPhrases", + "targetName": "keyPhrases" + } + ], + "defaultLanguageCode": null, + "maxKeyPhraseCount": null + } + ] } } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSynonymMap.json index 1633efdcd119..da5ba9b165dc 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSynonymMap.json @@ -3,19 +3,19 @@ "searchServiceName": "myservice", "searchDnsSuffix": "search.windows.net", "api-version": "2017-11-11-Preview", - "synonymMap": { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" - } + "synonymMap": { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" + } }, "responses": { "201": { - "body": { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" - } + "body": { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" + } } } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteDataSource.json index c19fbc4555db..29af0b3d5f87 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteDataSource.json @@ -6,7 +6,7 @@ "api-version": "2017-11-11-Preview" }, "responses": { - "204": { }, - "404": { } + "204": {}, + "404": {} } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndex.json index ff7458e906e1..392d6c4bfbdb 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndex.json @@ -6,7 +6,7 @@ "api-version": "2017-11-11-Preview" }, "responses": { - "204": { }, - "404": { } + "204": {}, + "404": {} } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndexer.json index 1a78a4c84590..c054d849efd0 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteIndexer.json @@ -6,7 +6,7 @@ "api-version": "2017-11-11-Preview" }, "responses": { - "204": { }, - "404": { } + "204": {}, + "404": {} } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSkillset.json index fc6d60720b70..19d8916d0105 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSkillset.json @@ -1,12 +1,12 @@ { - "parameters": { - "searchServiceName": "myservice", - "searchDnsSuffix": "search.windows.net", - "skillsetName": "demoskillset", - "api-version": "2017-11-11-Preview" - }, - "responses": { - "204": { }, - "404": { } - } + "parameters": { + "searchServiceName": "myservice", + "searchDnsSuffix": "search.windows.net", + "skillsetName": "demoskillset", + "api-version": "2017-11-11-Preview" + }, + "responses": { + "204": {}, + "404": {} + } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSynonymMap.json index d2e50bb801bd..9cdfcdd194b5 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceDeleteSynonymMap.json @@ -6,7 +6,7 @@ "api-version": "2017-11-11-Preview" }, "responses": { - "204": { }, - "404": { } + "204": {}, + "404": {} } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetDataSource.json index 6ad8746ef316..0e2bc5f65a01 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetDataSource.json @@ -10,7 +10,7 @@ "body": { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": null }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndex.json index 828fde77c2fc..420eeee14940 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndex.json @@ -3,7 +3,7 @@ "searchServiceName": "myservice", "searchDnsSuffix": "search.windows.net", "indexName": "hotels", - "api-version": "2017-11-11-Preview" + "api-version": "2017-11-11-Preview" }, "responses": { "200": { @@ -64,7 +64,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": "fr.lucene", - "synonymMaps": [] + "synonymMaps": [] }, { "name": "hotelName", @@ -176,7 +176,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": null, - "synonymMaps": [] + "synonymMaps": [] } ], "scoringProfiles": [ diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexStatistics.json index d80206a83d82..61c55f98a85a 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexStatistics.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexStatistics.json @@ -7,8 +7,8 @@ }, "responses": { "200": { - "body": { - "documentCount": 239572, + "body": { + "documentCount": 239572, "storageSize": 72375920 } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexer.json index a62939b173b6..d83e55727568 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexer.json @@ -8,20 +8,20 @@ "responses": { "200": { "body": { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 }, "fieldMappings": [], - "disabled": false + "disabled": false } } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexerStatus.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexerStatus.json index 5d08ca52269e..34748c6bc9e9 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexerStatus.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetIndexerStatus.json @@ -42,9 +42,7 @@ "errors": [ { "key": "", - "status": false, - "errorMessage": "Document key cannot be missing or empty.", - "statusCode": 400 + "errorMessage": "Document key cannot be missing or empty." } ], "warnings": [ diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetServiceStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetServiceStatistics.json index a995407a03ce..29783b21be59 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetServiceStatistics.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetServiceStatistics.json @@ -41,4 +41,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json index 814addbe919e..bc7cacc073a5 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json @@ -10,74 +10,94 @@ "body": { "name": "demoskillset", "description": "Extract entities, detect language and extract key-phrases", - "skills": [{ - "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "organizations", - "targetName": "organizations" - }], - "categories": ["organization"], - "defaultLanguageCode": "en", - "minimumPrecision": null - }, - { - "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" - }], - "outputs": [{ - "name": "languageCode", - "targetName": "languageCode" - }] - }, - { - "@odata.type": "#Microsoft.Skills.Text.SplitSkill", - "description": null, - "context": null, - "inputs": [{ - "name": "text", - "source": "/document/content" + "skills": [ + { + "@odata.type": "#Microsoft.Skills.Text.NamedEntityRecognitionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "organizations", + "targetName": "organizations" + } + ], + "categories": [ + "organization" + ], + "defaultLanguageCode": "en", + "minimumPrecision": null + }, + { + "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + } + ], + "outputs": [ + { + "name": "languageCode", + "targetName": "languageCode" + } + ] }, { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "textItems", - "targetName": "pages" - }], - "defaultLanguageCode": null, - "textSplitMode": "pages", - "maximumPageLength": 4000 - }, - { - "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", - "description": null, - "context": "/document/pages/*", - "inputs": [{ - "name": "text", - "source": "/document/pages/*" + "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "description": null, + "context": null, + "inputs": [ + { + "name": "text", + "source": "/document/content" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "textItems", + "targetName": "pages" + } + ], + "defaultLanguageCode": null, + "textSplitMode": "pages", + "maximumPageLength": 4000 }, { - "name": "languageCode", - "source": "/document/languageCode" - }], - "outputs": [{ - "name": "keyPhrases", - "targetName": "keyPhrases" - }], - "defaultLanguageCode": null, - "maxKeyPhraseCount": null - }] + "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "description": null, + "context": "/document/pages/*", + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "keyPhrases", + "targetName": "keyPhrases" + } + ], + "defaultLanguageCode": null, + "maxKeyPhraseCount": null + } + ] } } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSynonymMap.json index 698a0d25bd91..cb2dc19cdcfd 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSynonymMap.json @@ -7,11 +7,11 @@ }, "responses": { "200": { - "body": { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" - } + "body": { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" + } } } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceIndexAnalyze.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceIndexAnalyze.json index c4ec7c5e15d5..ef51d9c8faad 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceIndexAnalyze.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceIndexAnalyze.json @@ -6,7 +6,7 @@ "api-version": "2017-11-11-Preview", "request": { "text": "Text to analyze", - "analyzer": "standard" + "analyzer": "standard.lucene" } }, "responses": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListDataSources.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListDataSources.json index 4a7cc71ea843..6b28ba8f8656 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListDataSources.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListDataSources.json @@ -11,7 +11,7 @@ { "name": "mydocdbdatasource", "description": "My Cosmos DB data source.", - "type": "documentdb", + "type": "cosmosdb", "credentials": { "connectionString": null }, @@ -41,7 +41,7 @@ }, "dataChangeDetectionPolicy": null, "dataDeletionDetectionPolicy": null - } + } ] } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexers.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexers.json index 84dce3d21d0c..6b2d40603bcf 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexers.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexers.json @@ -9,26 +9,26 @@ "body": { "value": [ { - "name": "myindexer", - "description": "a cool indexer", - "dataSourceName": "mydocdbdatasource", - "targetIndexName": "orders", + "name": "myindexer", + "description": "a cool indexer", + "dataSourceName": "mydocdbdatasource", + "targetIndexName": "orders", "schedule": { "interval": "PT1H", "startTime": "2015-01-01T00:00:00Z" - }, + }, "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5 }, "fieldMappings": [], - "disabled": false + "disabled": false }, { - "name": "myotherindexer", - "description": "another cool indexer", - "dataSourceName": "myblobdatasource", - "targetIndexName": "orders", + "name": "myotherindexer", + "description": "another cool indexer", + "dataSourceName": "myblobdatasource", + "targetIndexName": "orders", "parameters": { "maxFailedItems": 10, "maxFailedItemsPerBatch": 5, @@ -59,7 +59,7 @@ } ], "disabled": false - } + } ] } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexes.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexes.json index ef4d25d13e43..9129b74fbc22 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexes.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListIndexes.json @@ -66,7 +66,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": "fr.lucene", - "synonymMaps": [] + "synonymMaps": [] }, { "name": "hotelName", @@ -178,7 +178,7 @@ "indexAnalyzer": null, "searchAnalyzer": null, "analyzer": null, - "synonymMaps": [] + "synonymMaps": [] } ], "scoringProfiles": [ diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json index df8d00743ab8..751761abd5f3 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json @@ -1,11 +1,11 @@ { - "parameters": { - "searchServiceName": "myservice", - "searchDnsSuffix": "search.windows.net", - "api-version": "2017-11-11-Preview" - }, - "responses": { - "200": { + "parameters": { + "searchServiceName": "myservice", + "searchDnsSuffix": "search.windows.net", + "api-version": "2017-11-11-Preview" + }, + "responses": { + "200": { "body": { "value": [ { @@ -28,7 +28,9 @@ "targetName": "organizations" } ], - "categories": [ "organization" ], + "categories": [ + "organization" + ], "defaultLanguageCode": "en", "minimumPrecision": null }, @@ -100,6 +102,6 @@ } ] } - } - } + } + } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSynonymMaps.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSynonymMaps.json index 20c041ae2915..0348bff89355 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSynonymMaps.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSynonymMaps.json @@ -8,16 +8,16 @@ "200": { "body": { "value": [ - { - "name" : "mysynonymmap", - "format" : "solr", - "synonyms" : "United States, United States of America, USA\nWashington, Wash. => WA" + { + "name": "mysynonymmap", + "format": "solr", + "synonyms": "United States, United States of America, USA\nWashington, Wash. => WA" }, - { - "name" : "myothersynonymmap", - "format" : "solr", - "synonyms" : "couch, sofa, chesterfield\npop, soda\ntoque, hat" - } + { + "name": "myothersynonymmap", + "format": "solr", + "synonyms": "couch, sofa, chesterfield\npop, soda\ntoque, hat" + } ] } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceResetIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceResetIndexer.json index 8a41e8f16c4d..99eaeef8b6cb 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceResetIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceResetIndexer.json @@ -6,6 +6,6 @@ "api-version": "2017-11-11-Preview" }, "responses": { - "204": { } + "204": {} } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceRunIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceRunIndexer.json index a6f65f1889ce..9d6ff0b871a1 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceRunIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceRunIndexer.json @@ -6,6 +6,6 @@ "api-version": "2017-11-11-Preview" }, "responses": { - "202": { } + "202": {} } } \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json index d9dcb26bed85..0bd9444a50df 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json @@ -34,7 +34,9 @@ ], "operationId": "DataSources_CreateOrUpdate", "x-ms-examples": { - "SearchServiceCreateOrUpdateDataSource": { "$ref": "./examples/SearchServiceCreateOrUpdateDataSource.json" } + "SearchServiceCreateOrUpdateDataSource": { + "$ref": "./examples/SearchServiceCreateOrUpdateDataSource.json" + } }, "description": "Creates a new Azure Search datasource or updates a datasource if it already exists.", "externalDocs": { @@ -95,7 +97,9 @@ ], "operationId": "DataSources_Delete", "x-ms-examples": { - "SearchServiceDeleteDataSource": { "$ref": "./examples/SearchServiceDeleteDataSource.json" } + "SearchServiceDeleteDataSource": { + "$ref": "./examples/SearchServiceDeleteDataSource.json" + } }, "description": "Deletes an Azure Search datasource.", "externalDocs": { @@ -138,7 +142,9 @@ ], "operationId": "DataSources_Get", "x-ms-examples": { - "SearchServiceGetDataSource": { "$ref": "./examples/SearchServiceGetDataSource.json" } + "SearchServiceGetDataSource": { + "$ref": "./examples/SearchServiceGetDataSource.json" + } }, "description": "Retrieves a datasource definition from Azure Search.", "externalDocs": { @@ -177,7 +183,9 @@ ], "operationId": "DataSources_List", "x-ms-examples": { - "SearchServiceListDataSources": { "$ref": "./examples/SearchServiceListDataSources.json" } + "SearchServiceListDataSources": { + "$ref": "./examples/SearchServiceListDataSources.json" + } }, "description": "Lists all datasources available for an Azure Search service.", "externalDocs": { @@ -207,7 +215,9 @@ ], "operationId": "DataSources_Create", "x-ms-examples": { - "SearchServiceCreateDataSource": { "$ref": "./examples/SearchServiceCreateDataSource.json" } + "SearchServiceCreateDataSource": { + "$ref": "./examples/SearchServiceCreateDataSource.json" + } }, "description": "Creates a new Azure Search datasource.", "externalDocs": { @@ -248,7 +258,9 @@ ], "operationId": "Indexers_Reset", "x-ms-examples": { - "SearchServiceResetIndexer": { "$ref": "./examples/SearchServiceResetIndexer.json" } + "SearchServiceResetIndexer": { + "$ref": "./examples/SearchServiceResetIndexer.json" + } }, "description": "Resets the change tracking state associated with an Azure Search indexer.", "externalDocs": { @@ -284,7 +296,9 @@ ], "operationId": "Indexers_Run", "x-ms-examples": { - "SearchServiceRunIndexer": { "$ref": "./examples/SearchServiceRunIndexer.json" } + "SearchServiceRunIndexer": { + "$ref": "./examples/SearchServiceRunIndexer.json" + } }, "description": "Runs an Azure Search indexer on-demand.", "externalDocs": { @@ -320,7 +334,9 @@ ], "operationId": "Indexers_CreateOrUpdate", "x-ms-examples": { - "SearchServiceCreateOrUpdateIndexer": { "$ref": "./examples/SearchServiceCreateOrUpdateIndexer.json" } + "SearchServiceCreateOrUpdateIndexer": { + "$ref": "./examples/SearchServiceCreateOrUpdateIndexer.json" + } }, "description": "Creates a new Azure Search indexer or updates an indexer if it already exists.", "externalDocs": { @@ -381,7 +397,9 @@ ], "operationId": "Indexers_Delete", "x-ms-examples": { - "SearchServiceDeleteIndexer": { "$ref": "./examples/SearchServiceDeleteIndexer.json" } + "SearchServiceDeleteIndexer": { + "$ref": "./examples/SearchServiceDeleteIndexer.json" + } }, "description": "Deletes an Azure Search indexer.", "externalDocs": { @@ -424,7 +442,9 @@ ], "operationId": "Indexers_Get", "x-ms-examples": { - "SearchServiceGetIndexer": { "$ref": "./examples/SearchServiceGetIndexer.json" } + "SearchServiceGetIndexer": { + "$ref": "./examples/SearchServiceGetIndexer.json" + } }, "description": "Retrieves an indexer definition from Azure Search.", "externalDocs": { @@ -463,7 +483,9 @@ ], "operationId": "Indexers_List", "x-ms-examples": { - "SearchServiceListIndexers": { "$ref": "./examples/SearchServiceListIndexers.json" } + "SearchServiceListIndexers": { + "$ref": "./examples/SearchServiceListIndexers.json" + } }, "description": "Lists all indexers available for an Azure Search service.", "externalDocs": { @@ -493,7 +515,9 @@ ], "operationId": "Indexers_Create", "x-ms-examples": { - "SearchServiceCreateIndexer": { "$ref": "./examples/SearchServiceCreateIndexer.json" } + "SearchServiceCreateIndexer": { + "$ref": "./examples/SearchServiceCreateIndexer.json" + } }, "description": "Creates a new Azure Search indexer.", "externalDocs": { @@ -534,7 +558,9 @@ ], "operationId": "Indexers_GetStatus", "x-ms-examples": { - "SearchServiceGetIndexerStatus": { "$ref": "./examples/SearchServiceGetIndexerStatus.json" } + "SearchServiceGetIndexerStatus": { + "$ref": "./examples/SearchServiceGetIndexerStatus.json" + } }, "description": "Returns the current status and execution history of an indexer.", "externalDocs": { @@ -568,10 +594,14 @@ }, "/skillsets('{skillsetName}')": { "put": { - "tags": ["Skillsets"], + "tags": [ + "Skillsets" + ], "operationId": "Skillsets_CreateOrUpdate", "x-ms-examples": { - "SearchServiceCreateOrUpdateSkillset": { "$ref": "./examples/SearchServiceCreateOrUpdateSkillset.json" } + "SearchServiceCreateOrUpdateSkillset": { + "$ref": "./examples/SearchServiceCreateOrUpdateSkillset.json" + } }, "description": "Creates a new cognitive skillset in an Azure Search service or updates the skillset if it already exists.", "externalDocs": { @@ -621,10 +651,14 @@ } }, "delete": { - "tags": ["Skillsets"], + "tags": [ + "Skillsets" + ], "operationId": "Skillsets_Delete", "x-ms-examples": { - "SearchServiceDeleteSkillset": { "$ref": "./examples/SearchServiceDeleteSkillset.json" } + "SearchServiceDeleteSkillset": { + "$ref": "./examples/SearchServiceDeleteSkillset.json" + } }, "description": "Deletes a cognitive skillset in an Azure Search service.", "externalDocs": { @@ -656,10 +690,14 @@ } }, "get": { - "tags": ["Skillsets"], + "tags": [ + "Skillsets" + ], "operationId": "Skillsets_Get", "x-ms-examples": { - "SearchServiceGetSkillset": { "$ref": "./examples/SearchServiceGetSkillset.json" } + "SearchServiceGetSkillset": { + "$ref": "./examples/SearchServiceGetSkillset.json" + } }, "description": "Retrieves a cognitive skillset in an Azure Search service.", "externalDocs": { @@ -693,10 +731,14 @@ }, "/skillsets": { "get": { - "tags": ["Skillsets"], + "tags": [ + "Skillsets" + ], "operationId": "Skillsets_List", "x-ms-examples": { - "SearchServiceListSkillsets": { "$ref": "./examples/SearchServiceListSkillsets.json" } + "SearchServiceListSkillsets": { + "$ref": "./examples/SearchServiceListSkillsets.json" + } }, "description": "List all cognitive skillsets in an Azure Search service.", "externalDocs": { @@ -721,10 +763,14 @@ } }, "post": { - "tags": ["Skillsets"], + "tags": [ + "Skillsets" + ], "operationId": "Skillsets_Create", "x-ms-examples": { - "SearchServiceCreateSkillset": { "$ref": "./examples/SearchServiceCreateSkillset.json" } + "SearchServiceCreateSkillset": { + "$ref": "./examples/SearchServiceCreateSkillset.json" + } }, "description": "Creates a new cognitive skillset in an Azure Search service.", "externalDocs": { @@ -765,7 +811,9 @@ ], "operationId": "SynonymMaps_CreateOrUpdate", "x-ms-examples": { - "SearchServiceCreateOrUpdateSynonymMap": { "$ref": "./examples/SearchServiceCreateOrUpdateSynonymMap.json" } + "SearchServiceCreateOrUpdateSynonymMap": { + "$ref": "./examples/SearchServiceCreateOrUpdateSynonymMap.json" + } }, "description": "Creates a new Azure Search synonym map or updates a synonym map if it already exists.", "externalDocs": { @@ -826,7 +874,9 @@ ], "operationId": "SynonymMaps_Delete", "x-ms-examples": { - "SearchServiceDeleteSynonymMap": { "$ref": "./examples/SearchServiceDeleteSynonymMap.json" } + "SearchServiceDeleteSynonymMap": { + "$ref": "./examples/SearchServiceDeleteSynonymMap.json" + } }, "description": "Deletes an Azure Search synonym map.", "externalDocs": { @@ -869,7 +919,9 @@ ], "operationId": "SynonymMaps_Get", "x-ms-examples": { - "SearchServiceGetSynonymMap": { "$ref": "./examples/SearchServiceGetSynonymMap.json" } + "SearchServiceGetSynonymMap": { + "$ref": "./examples/SearchServiceGetSynonymMap.json" + } }, "description": "Retrieves a synonym map definition from Azure Search.", "externalDocs": { @@ -908,7 +960,9 @@ ], "operationId": "SynonymMaps_List", "x-ms-examples": { - "SearchServiceListSynonymMaps": { "$ref": "./examples/SearchServiceListSynonymMaps.json" } + "SearchServiceListSynonymMaps": { + "$ref": "./examples/SearchServiceListSynonymMaps.json" + } }, "description": "Lists all synonym maps available for an Azure Search service.", "externalDocs": { @@ -938,7 +992,9 @@ ], "operationId": "SynonymMaps_Create", "x-ms-examples": { - "SearchServiceCreateSynonymMap": { "$ref": "./examples/SearchServiceCreateSynonymMap.json" } + "SearchServiceCreateSynonymMap": { + "$ref": "./examples/SearchServiceCreateSynonymMap.json" + } }, "description": "Creates a new Azure Search synonym map.", "externalDocs": { @@ -979,7 +1035,9 @@ ], "operationId": "Indexes_Create", "x-ms-examples": { - "SearchServiceCreateIndex": { "$ref": "./examples/SearchServiceCreateIndex.json" } + "SearchServiceCreateIndex": { + "$ref": "./examples/SearchServiceCreateIndex.json" + } }, "description": "Creates a new Azure Search index.", "externalDocs": { @@ -1018,7 +1076,9 @@ ], "operationId": "Indexes_List", "x-ms-examples": { - "SearchServiceListIndexes": { "$ref": "./examples/SearchServiceListIndexes.json" } + "SearchServiceListIndexes": { + "$ref": "./examples/SearchServiceListIndexes.json" + } }, "description": "Lists all indexes available for an Azure Search service.", "externalDocs": { @@ -1057,7 +1117,9 @@ ], "operationId": "Indexes_CreateOrUpdate", "x-ms-examples": { - "SearchServiceCreateOrUpdateIndex": { "$ref": "./examples/SearchServiceCreateOrUpdateIndex.json" } + "SearchServiceCreateOrUpdateIndex": { + "$ref": "./examples/SearchServiceCreateOrUpdateIndex.json" + } }, "description": "Creates a new Azure Search index or updates an index if it already exists.", "externalDocs": { @@ -1125,7 +1187,9 @@ ], "operationId": "Indexes_Delete", "x-ms-examples": { - "SearchServiceDeleteIndex": { "$ref": "./examples/SearchServiceDeleteIndex.json" } + "SearchServiceDeleteIndex": { + "$ref": "./examples/SearchServiceDeleteIndex.json" + } }, "description": "Deletes an Azure Search index and all the documents it contains.", "externalDocs": { @@ -1168,7 +1232,9 @@ ], "operationId": "Indexes_Get", "x-ms-examples": { - "SearchServiceGetIndex": { "$ref": "./examples/SearchServiceGetIndex.json" } + "SearchServiceGetIndex": { + "$ref": "./examples/SearchServiceGetIndex.json" + } }, "description": "Retrieves an index definition from Azure Search.", "externalDocs": { @@ -1207,7 +1273,9 @@ ], "operationId": "Indexes_GetStatistics", "x-ms-examples": { - "SearchServiceGetIndexStatistics": { "$ref": "./examples/SearchServiceGetIndexStatistics.json" } + "SearchServiceGetIndexStatistics": { + "$ref": "./examples/SearchServiceGetIndexStatistics.json" + } }, "description": "Returns statistics for the given index, including a document count and storage usage.", "externalDocs": { @@ -1246,7 +1314,9 @@ ], "operationId": "Indexes_Analyze", "x-ms-examples": { - "SearchServiceIndexAnalyze": { "$ref": "./examples/SearchServiceIndexAnalyze.json" } + "SearchServiceIndexAnalyze": { + "$ref": "./examples/SearchServiceIndexAnalyze.json" + } }, "description": "Shows how an analyzer breaks text into tokens.", "externalDocs": { @@ -1294,7 +1364,9 @@ ], "operationId": "GetServiceStatistics", "x-ms-examples": { - "SearchServiceGetServiceStatistics": { "$ref": "./examples/SearchServiceGetServiceStatistics.json" } + "SearchServiceGetServiceStatistics": { + "$ref": "./examples/SearchServiceGetServiceStatistics.json" + } }, "description": "Gets service level statistics for an Azure Search service.", "parameters": [ @@ -1335,14 +1407,16 @@ "tokenFilters": { "type": "array", "items": { - "$ref": "#/definitions/TokenFilterName" + "$ref": "#/definitions/TokenFilterName", + "x-nullable": false }, "description": "An optional list of token filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter." }, "charFilters": { "type": "array", "items": { - "$ref": "#/definitions/CharFilterName" + "$ref": "#/definitions/CharFilterName", + "x-nullable": false }, "description": "An optional list of character filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter." } @@ -1393,73 +1467,235 @@ "description": "Information about a token returned by an analyzer." }, "AnalyzerName": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "ar.microsoft", + "ar.lucene", + "hy.lucene", + "bn.microsoft", + "eu.lucene", + "bg.microsoft", + "bg.lucene", + "ca.microsoft", + "ca.lucene", + "zh-Hans.microsoft", + "zh-Hans.lucene", + "zh-Hant.microsoft", + "zh-Hant.lucene", + "hr.microsoft", + "cs.microsoft", + "cs.lucene", + "da.microsoft", + "da.lucene", + "nl.microsoft", + "nl.lucene", + "en.microsoft", + "en.lucene", + "et.microsoft", + "fi.microsoft", + "fi.lucene", + "fr.microsoft", + "fr.lucene", + "gl.lucene", + "de.microsoft", + "de.lucene", + "el.microsoft", + "el.lucene", + "gu.microsoft", + "he.microsoft", + "hi.microsoft", + "hi.lucene", + "hu.microsoft", + "hu.lucene", + "is.microsoft", + "id.microsoft", + "id.lucene", + "ga.lucene", + "it.microsoft", + "it.lucene", + "ja.microsoft", + "ja.lucene", + "kn.microsoft", + "ko.microsoft", + "ko.lucene", + "lv.microsoft", + "lv.lucene", + "lt.microsoft", + "ml.microsoft", + "ms.microsoft", + "mr.microsoft", + "nb.microsoft", + "no.lucene", + "fa.lucene", + "pl.microsoft", + "pl.lucene", + "pt-BR.microsoft", + "pt-BR.lucene", + "pt-PT.microsoft", + "pt-PT.lucene", + "pa.microsoft", + "ro.microsoft", + "ro.lucene", + "ru.microsoft", + "ru.lucene", + "sr-cyrillic.microsoft", + "sr-latin.microsoft", + "sk.microsoft", + "sl.microsoft", + "es.microsoft", + "es.lucene", + "sv.microsoft", + "sv.lucene", + "ta.microsoft", + "te.microsoft", + "th.microsoft", + "th.lucene", + "tr.microsoft", + "tr.lucene", + "uk.microsoft", + "ur.microsoft", + "vi.microsoft", + "standard.lucene", + "standardasciifolding.lucene", + "keyword", + "pattern", + "simple", + "stop", + "whitespace" + ], + "x-ms-enum": { + "name": "AnalyzerName", + "modelAsString": false }, "description": "Defines the names of all text analyzers supported by Azure Search.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Language-support" - }, - "x-ms-external": true + } }, "TokenizerName": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "classic", + "edgeNGram", + "keyword_v2", + "letter", + "lowercase", + "microsoft_language_tokenizer", + "microsoft_language_stemming_tokenizer", + "nGram", + "path_hierarchy_v2", + "pattern", + "standard_v2", + "uax_url_email", + "whitespace" + ], + "x-ms-enum": { + "name": "TokenizerName", + "modelAsString": false }, "description": "Defines the names of all tokenizers supported by Azure Search.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search" - }, - "x-ms-external": true + } }, "TokenFilterName": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "arabic_normalization", + "apostrophe", + "asciifolding", + "cjk_bigram", + "cjk_width", + "classic", + "common_grams", + "edgeNGram_v2", + "elision", + "german_normalization", + "hindi_normalization", + "indic_normalization", + "keyword_repeat", + "kstem", + "length", + "limit", + "lowercase", + "nGram_v2", + "persian_normalization", + "phonetic", + "porter_stem", + "reverse", + "scandinavian_normalization", + "scandinavian_folding", + "shingle", + "snowball", + "sorani_normalization", + "stemmer", + "stopwords", + "trim", + "truncate", + "unique", + "uppercase", + "word_delimiter" + ], + "x-ms-enum": { + "name": "TokenFilterName", + "modelAsString": false }, "description": "Defines the names of all token filters supported by Azure Search.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search" - }, - "x-ms-external": true + } }, "CharFilterName": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "html_strip" + ], + "x-ms-enum": { + "name": "CharFilterName", + "modelAsString": false }, "description": "Defines the names of all character filters supported by Azure Search.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search" - }, - "x-ms-external": true + } }, "RegexFlags": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "CANON_EQ", + "CASE_INSENSITIVE", + "COMMENTS", + "DOTALL", + "LITERAL", + "MULTILINE", + "UNICODE_CASE", + "UNIX_LINES" + ], + "x-ms-enum": { + "name": "RegexFlags", + "modelAsString": false }, "description": "Defines flags that can be combined to control how regular expressions are used in the pattern analyzer and pattern tokenizer.", "externalDocs": { "url": "http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#field_summary" - }, - "x-ms-external": true + } }, "DataType": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "Edm.String", + "Edm.Int32", + "Edm.Int64", + "Edm.Double", + "Edm.Boolean", + "Edm.DateTimeOffset", + "Edm.GeographyPoint" + ], + "x-ms-enum": { + "name": "DataType", + "modelAsString": false }, - "description": "Defines the data type of a field in an Azure Search index.", - "x-ms-external": true + "description": "Defines the data type of a field in an Azure Search index." }, "Analyzer": { "discriminator": "@odata.type", @@ -1469,14 +1705,15 @@ }, "name": { "type": "string", - "externalDocs":{ + "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/custom-analyzers-in-azure-search#index-attribute-reference" }, "description": "The name of the analyzer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters." } }, "required": [ - "@odata.type", "name" + "@odata.type", + "name" ], "description": "Abstract base class for analyzers." }, @@ -1495,14 +1732,16 @@ "tokenFilters": { "type": "array", "items": { - "$ref": "#/definitions/TokenFilterName" + "$ref": "#/definitions/TokenFilterName", + "x-nullable": false }, "description": "A list of token filters used to filter out or modify the tokens generated by a tokenizer. For example, you can specify a lowercase filter that converts all characters to lowercase. The filters are run in the order in which they are listed." }, "charFilters": { "type": "array", "items": { - "$ref": "#/definitions/CharFilterName" + "$ref": "#/definitions/CharFilterName", + "x-nullable": false }, "description": "A list of character filters used to prepare input text before it is processed by the tokenizer. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed." } @@ -1605,14 +1844,15 @@ }, "name": { "type": "string", - "externalDocs":{ + "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/custom-analyzers-in-azure-search#index-attribute-reference" }, "description": "The name of the tokenizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters." } }, "required": [ - "@odata.type", "name" + "@odata.type", + "name" ], "description": "Abstract base class for tokenizers.", "externalDocs": { @@ -2122,14 +2362,15 @@ }, "name": { "type": "string", - "externalDocs":{ + "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/custom-analyzers-in-azure-search#index-attribute-reference" }, "description": "The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters." } }, "required": [ - "@odata.type", "name" + "@odata.type", + "name" ], "description": "Abstract base class for token filters.", "externalDocs": { @@ -2394,7 +2635,7 @@ }, "description": "The list of words to keep." }, - "keepWordsCase" : { + "keepWordsCase": { "x-ms-client-name": "LowerCaseKeepWords", "type": "boolean", "default": false, @@ -3083,14 +3324,15 @@ }, "name": { "type": "string", - "externalDocs":{ + "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/custom-analyzers-in-azure-search#index-attribute-reference" }, "description": "The name of the char filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters." } }, "required": [ - "@odata.type", "name" + "@odata.type", + "name" ], "description": "Abstract base class for character filters.", "externalDocs": { @@ -3153,6 +3395,9 @@ "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Create-Data-Source" }, + "x-ms-mutability": [ + "create" + ], "type": "string", "description": "The connection string for the datasource." } @@ -3249,13 +3494,18 @@ } }, "DataSourceType": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "azuresql", + "cosmosdb", + "azureblob", + "azuretable" + ], + "x-ms-enum": { + "name": "DataSourceType", + "modelAsString": false }, - "description": "Defines the type of an Azure Search datasource.", - "x-ms-external": true + "description": "Defines the type of an Azure Search datasource." }, "DataSource": { "properties": { @@ -3297,7 +3547,10 @@ } }, "required": [ - "name", "type", "credentials", "container" + "name", + "type", + "credentials", + "container" ], "description": "Represents a datasource definition in Azure Search, which can be used to configure an indexer." }, @@ -3479,7 +3732,9 @@ } }, "required": [ - "name", "dataSourceName", "targetIndexName" + "name", + "dataSourceName", + "targetIndexName" ], "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Indexer-operations" @@ -3607,7 +3862,9 @@ "inProgress", "reset" ], - "x-ms-enum": { "name": "IndexerExecutionStatus" }, + "x-ms-enum": { + "name": "IndexerExecutionStatus" + }, "x-nullable": false, "description": "Represents the status of an individual indexer execution." }, @@ -3641,29 +3898,60 @@ "error", "running" ], - "x-ms-enum": { "name": "IndexerStatus" }, + "x-ms-enum": { + "name": "IndexerStatus" + }, "x-nullable": false, "description": "Represents the overall indexer status." }, "Field": { "properties": { "name": { + "type": "string", + "description": "The name of the field.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Naming-rules" - }, - "type": "string", - "description": "The name of the field." + } }, "type": { "$ref": "#/definitions/DataType", - "description": "The data type of the field." + "description": "The data type of the field.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/searchservice/supported-data-types" + } + }, + "key": { + "type": "boolean", + "default": false, + "description": "A value indicating whether the field uniquely identifies documents in the index. Exactly one field in each index must be chosen as the key field and it must be of type Edm.String. Key fields can be used to look up documents directly and update or delete specific documents. Default is false." + }, + "retrievable": { + "type": "boolean", + "default": true, + "description": "A value indicating whether the field can be returned in a search result. This is useful when you want to use a field (for example, margin) as a filter, sorting, or scoring mechanism but do not want the field to be visible to the end user. This property must be true for key fields. This property can be changed on existing fields. Enabling this property does not cause any increase in index storage requirements. All fields are retrievable by default." + }, + "searchable": { + "type": "boolean", + "description": "A value indicating whether the field is full-text search-able. This means it will undergo analysis such as word-breaking during indexing. If you set a searchable field to a value like \"sunny day\", internally it will be split into the individual tokens \"sunny\" and \"day\". This enables full-text searches for these terms. Fields of type Edm.String or Collection(Edm.String) are searchable by default. Fields of other types are not searchable. Note: searchable fields consume extra space in your index since Azure Search will store an additional tokenized version of the field value for full-text searches. If you want to save space in your index and you don't need a field to be included in searches, set searchable to false." + }, + "filterable": { + "type": "boolean", + "description": "A value indicating whether to enable the field to be referenced in $filter queries. filterable differs from searchable in how strings are handled. Fields of type Edm.String or Collection(Edm.String) that are filterable do not undergo word-breaking, so comparisons are for exact matches only. For example, if you set such a field f to \"sunny day\", $filter=f eq 'sunny' will find no matches, but $filter=f eq 'sunny day' will. All fields are filterable by default." + }, + "sortable": { + "type": "boolean", + "description": "A value indicating whether to enable the field to be referenced in $orderby expressions. By default Azure Search sorts results by score, but in many experiences users will want to sort by fields in the documents. Fields of type Collection(Edm.String) cannot be sortable. All other fields are sortable by default." + }, + "facetable": { + "type": "boolean", + "description": "A value indicating whether to enable the field to be referenced in facet queries. Typically used in a presentation of search results that includes hit count by category (for example, search for digital cameras and see hits by brand, by megapixels, by price, and so on). This option cannot be used with fields of type Edm.GeographyPoint. All other fields are facetable by default." }, "analyzer": { "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Language-support" }, "$ref": "#/definitions/AnalyzerName", - "description": "The name of the analyzer to use for the field at search time and indexing time. This option can be used only with searchable fields and it can't be set together with either searchAnalyzer or indexAnalyzer. Once the analyzer is chosen, it cannot be changed for the field." + "description": "The name of the language analyzer to use for the field. This option can be used only with searchable fields and it can't be set together with either searchAnalyzer or indexAnalyzer. Once the analyzer is chosen, it cannot be changed for the field." }, "searchAnalyzer": { "externalDocs": { @@ -3687,54 +3975,17 @@ "items": { "type": "string" }, - "description": "A list of synonym maps to apply in query expansion. Only one synonym map is allowed in the list currently. Synonym maps must be uploaded first to be referenced. This option can be used only with searchable fields." - }, - "key": { - "x-ms-client-name": "isKey", - "type": "boolean", - "x-nullable": false, - "description": "A value indicating whether the field is the key of the index. Valid only for string fields. Every index must have exactly one key field." - }, - "searchable": { - "x-ms-client-name": "isSearchable", - "type": "boolean", - "x-nullable": false, - "description": "A value indicating whether the field is included in full-text searches. Valid only for string or string collection fields. Default is false." - }, - "filterable": { - "x-ms-client-name": "isFilterable", - "type": "boolean", - "x-nullable": false, - "description": "A value indicating whether the field can be used in filter expressions. Default is false." - }, - "sortable": { - "x-ms-client-name": "isSortable", - "type": "boolean", - "x-nullable": false, - "description": "A value indicating whether the field can be used in orderby expressions. Not valid for string collection fields. Default is false." - }, - "facetable": { - "x-ms-client-name": "isFacetable", - "type": "boolean", - "x-nullable": false, - "description": "A value indicating whether it is possible to facet on this field. Not valid for geo-point fields. Default is false." - }, - "retrievable": { - "x-ms-client-name": "isRetrievable", - "type": "boolean", - "x-nullable": false, - "default": true, - "description": "A value indicating whether the field can be returned in a search result. Default is true." + "description": "A list of synonym map names that associates synonym maps with the field. Currently only one synonym map per field is supported. Assigning a synonym map to a field ensures that query terms targeting that field are expanded at query-time using the rules in the synonym map. This attribute can be changed on existing fields." } }, "required": [ - "name", "type" + "name", + "type" ], "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Create-Index" }, - "description": "Represents a field in an index definition in Azure Search, which describes the name, data type, and search behavior of a field.", - "x-ms-external": true + "description": "Represents a field in an index definition in Azure Search, which describes the name, data type, and search behavior of a field." }, "TextWeights": { "properties": { @@ -3774,7 +4025,9 @@ } }, "required": [ - "type", "fieldName", "boost" + "type", + "fieldName", + "boost" ], "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/Add-scoring-profiles-to-a-search-index" @@ -3816,7 +4069,8 @@ } }, "required": [ - "referencePointParameter", "boostingDistance" + "referencePointParameter", + "boostingDistance" ], "description": "Provides parameter values to a distance scoring function." }, @@ -3896,7 +4150,8 @@ } }, "required": [ - "boostingRangeStart", "boostingRangeEnd" + "boostingRangeStart", + "boostingRangeEnd" ], "description": "Provides parameter values to a magnitude scoring function." }, @@ -3942,7 +4197,9 @@ "quadratic", "logarithmic" ], - "x-ms-enum": { "name": "ScoringFunctionInterpolation" }, + "x-ms-enum": { + "name": "ScoringFunctionInterpolation" + }, "description": "Defines the function used to interpolate score boosting across a range of documents." }, "ScoringProfile": { @@ -3988,7 +4245,9 @@ "maximum", "firstMatching" ], - "x-ms-enum": { "name": "ScoringFunctionAggregation" }, + "x-ms-enum": { + "name": "ScoringFunctionAggregation" + }, "description": "Defines the aggregation function used to combine the results of all the scoring functions in a scoring profile." }, "CorsOptions": { @@ -4040,7 +4299,9 @@ } }, "required": [ - "name", "searchMode", "sourceFields" + "name", + "searchMode", + "sourceFields" ], "description": "Defines how the Suggest API should apply to a group of fields in the index." }, @@ -4129,7 +4390,8 @@ } }, "required": [ - "name", "fields" + "name", + "fields" ], "description": "Represents an index definition in Azure Search, which describes the fields and search behavior of an index." }, @@ -4194,11 +4456,13 @@ } }, "required": [ - "name", "description", "skills" + "name", + "description", + "skills" ], "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-tutorial-blob" - }, + }, "description": "A list of cognitive skills." }, "CognitiveServices": { @@ -4254,7 +4518,7 @@ }, "context": { "type": "string", - "description": "Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content)." + "description": "Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document." }, "inputs": { "type": "array", @@ -4272,11 +4536,13 @@ } }, "required": [ - "@odata.type", "description", "context", "inputs", "outputs" + "@odata.type", + "inputs", + "outputs" ], "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-predefined-skills" - }, + }, "description": "Abstract base class for skills." }, "InputFieldMappingEntry": { @@ -4291,7 +4557,8 @@ } }, "required": [ - "name", "source" + "name", + "source" ], "description": "Input field mapping for a skill." }, @@ -4307,11 +4574,11 @@ } }, "required": [ - "name" + "name" ], "externalDocs": { "url": "https://docs.microsoft.com/rest/api/searchservice/naming-rules" - }, + }, "description": "Output field mapping for a skill." }, "KeyPhraseExtractionSkill": { @@ -4335,7 +4602,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-keyphrases" - }, + }, "description": "A skill that uses text analytics for key phrase extraction." }, "OcrSkill": { @@ -4355,7 +4622,7 @@ "description": "A value indicating which language code to use. Default is en." }, "detectOrientation": { - "x-ms-client-name": "ShouldDetectOrientation", + "x-ms-client-name": "ShouldDetectOrientation", "type": "boolean", "default": false, "description": "A value indicating to turn orientation detection on or not. Default is false." @@ -4363,7 +4630,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-ocr" - }, + }, "description": "A skill that extracts text from image files." }, "ImageAnalysisSkill": { @@ -4397,7 +4664,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-image-analysis" - }, + }, "description": "A skill that analyzes image files. It extracts a rich set of visual features based on the image content." }, "LanguageDetectionSkill": { @@ -4409,7 +4676,7 @@ ], "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-language-detection" - }, + }, "description": "A skill that detects the language of input text and reports a single language code for every document submitted on the request. The language code is paired with a score indicating the confidence of the analysis." }, "ShaperSkill": { @@ -4421,7 +4688,7 @@ ], "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-shaper" - }, + }, "description": "A skill for reshaping the outputs. It creates a complex type to support composite fields (also known as multipart fields)." }, "MergeSkill": { @@ -4445,7 +4712,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-textmerger" - }, + }, "description": "A skill for merging two or more strings into a single unified string, with an optional user-defined delimiter separating each component part." }, "EntityRecognitionSkill": { @@ -4508,7 +4775,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-named-entity-recognition" - }, + }, "description": "Text analytics named entity recognition. This skill is deprecated in favor of EntityRecognitionSkill.", "x-ms-external": true }, @@ -4527,7 +4794,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-sentiment" - }, + }, "description": "Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1." }, "SplitSkill": { @@ -4556,7 +4823,7 @@ }, "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-textsplit" - }, + }, "description": "A skill to split a string into chunks of text." }, "WebApiSkill": { @@ -4592,11 +4859,13 @@ } }, "required": [ - "uri", "httpHeaders", "httpMethod" - ], + "uri", + "httpHeaders", + "httpMethod" + ], "externalDocs": { "url": "https://docs.microsoft.com/azure/search/cognitive-search-custom-skill-interface" - }, + }, "description": "A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call your custom code." }, "WebApiHttpHeaders": { @@ -4626,54 +4895,54 @@ }, "TextExtractionAlgorithm": { "type": "string", - "enum": [ - "printed", - "handwritten" - ], - "x-ms-enum": { - "name": "TextExtractionAlgorithm", - "modelAsString": false - }, + "enum": [ + "printed", + "handwritten" + ], + "x-ms-enum": { + "name": "TextExtractionAlgorithm", + "modelAsString": false + }, "description": "A value indicating which algorithm to use. Default is printed." }, "TextSplitMode": { "type": "string", - "enum": [ - "pages", - "sentences" - ], - "x-ms-enum": { - "name": "TextSplitMode", - "modelAsString": false - }, + "enum": [ + "pages", + "sentences" + ], + "x-ms-enum": { + "name": "TextSplitMode", + "modelAsString": false + }, "description": "A value indicating which split mode to perform." }, "VisualFeature": { "type": "string", - "enum": [ - "categories", - "tags", + "enum": [ + "categories", + "tags", "description", "faces", "imageType", "color" - ], - "x-ms-enum": { - "name": "VisualFeature", - "modelAsString": false - }, + ], + "x-ms-enum": { + "name": "VisualFeature", + "modelAsString": false + }, "description": "The strings indicating what visual feature types to return." }, "ImageDetail": { "type": "string", - "enum": [ - "celebrities", - "landmarks" - ], - "x-ms-enum": { - "name": "ImageDetail", - "modelAsString": false - }, + "enum": [ + "celebrities", + "landmarks" + ], + "x-ms-enum": { + "name": "ImageDetail", + "modelAsString": false + }, "description": "A string indicating which domain-specific details to return." }, "EntityCategory": { @@ -4704,76 +4973,161 @@ "x-ms-external": true }, "SentimentSkillLanguage": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "da", + "nl", + "en", + "fi", + "fr", + "de", + "el", + "it", + "no", + "pl", + "pt-PT", + "ru", + "es", + "sv", + "tr" + ], + "x-ms-enum": { + "name": "SentimentSkillLanguage", + "modelAsString": false }, - "description": "The language codes supported for input text by SentimentSkill.", - "x-ms-external": true + "description": "The language codes supported for input text by SentimentSkill." }, "KeyPhraseExtractionSkillLanguage": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "da", + "nl", + "en", + "fi", + "fr", + "de", + "it", + "ja", + "ko", + "no", + "pl", + "pt-PT", + "pt-BR", + "ru", + "es", + "sv" + ], + "x-ms-enum": { + "name": "KeyPhraseExtractionSkillLanguage", + "modelAsString": false }, - "description": "The language codes supported for input text by KeyPhraseExtractionSkill.", - "x-ms-external": true + "description": "The language codes supported for input text by KeyPhraseExtractionSkill." }, "OcrSkillLanguage": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "zh-Hans", + "zh-Hant", + "cs", + "da", + "nl", + "en", + "fi", + "fr", + "de", + "el", + "hu", + "it", + "ja", + "ko", + "nb", + "pl", + "pt", + "ru", + "es", + "sv", + "tr", + "ar", + "ro", + "sr-Cyrl", + "sr-Latn", + "sk" + ], + "x-ms-enum": { + "name": "OcrSkillLanguage", + "modelAsString": false }, - "description": "The language codes supported for input by OcrSkill.", - "x-ms-external": true + "description": "The language codes supported for input by OcrSkill." }, "SplitSkillLanguage": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "da", + "de", + "en", + "es", + "fi", + "fr", + "it", + "ko", + "pt" + ], + "x-ms-enum": { + "name": "SplitSkillLanguage", + "modelAsString": false }, - "description": "The language codes supported for input text by SplitSkill.", - "x-ms-external": true + "description": "The language codes supported for input text by SplitSkill." }, "EntityRecognitionSkillLanguage": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "de", + "en", + "es", + "fr", + "it" + ], + "x-ms-enum": { + "name": "EntityRecognitionSkillLanguage", + "modelAsString": false }, - "description": "The language codes supported for input text by EntityRecognitionSkill.", - "x-ms-external": true + "description": "The language codes supported for input text by EntityRecognitionSkill." }, "NamedEntityRecognitionSkillLanguage": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "ar", + "cs", + "da", + "de", + "en", + "es", + "fi", + "fr", + "he", + "hu", + "it", + "ko", + "pt-br", + "pt" + ], + "x-ms-enum": { + "name": "NamedEntityRecognitionSkillLanguage", + "modelAsString": false }, - "description": "The language codes supported for input text by NamedEntityRecognitionSkill.", - "x-ms-external": true + "description": "The language codes supported for input text by NamedEntityRecognitionSkill." }, "ImageAnalysisSkillLanguage": { - "properties": { - "name": { - "type": "string" - } - }, - "description": "The language codes supported for input by ImageAnalysisSkill.", - "x-ms-external": true - }, - "SynonymMapFormat": { - "properties": { - "name": { - "type": "string" - } + "type": "string", + "enum": [ + "en", + "zh" + ], + "x-ms-enum": { + "name": "ImageAnalysisSkillLanguage", + "modelAsString": false }, - "description": "The format of the synonym map. Only the 'solr' format is currently supported.", - "x-ms-external": true + "description": "The language codes supported for input by ImageAnalysisSkill." }, "SynonymMap": { "properties": { @@ -4785,7 +5139,14 @@ "description": "The name of the synonym map." }, "format": { - "$ref": "#/definitions/SynonymMapFormat", + "type": "string", + "enum": [ + "solr" + ], + "x-ms-enum": { + "name": "SynonymMapFormat", + "modelAsString": false + }, "description": "The format of the synonym map. Only the 'solr' format is currently supported." }, "synonyms": { @@ -4802,7 +5163,9 @@ } }, "required": [ - "name", "format", "synonyms" + "name", + "format", + "synonyms" ], "description": "Represents a synonym map definition in Azure Search." }, @@ -4925,7 +5288,9 @@ "format": "uuid", "description": "The tracking ID sent with the request to help with debugging.", "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { "name": "search-request-options" }, + "x-ms-parameter-grouping": { + "name": "search-request-options" + }, "x-ms-parameter-location": "method" }, "IfMatchParameter": { @@ -4934,7 +5299,9 @@ "required": false, "type": "string", "description": "Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value.", - "x-ms-parameter-grouping": { "name": "access-condition" }, + "x-ms-parameter-grouping": { + "name": "access-condition" + }, "x-ms-parameter-location": "method" }, "IfNoneMatchParameter": { @@ -4943,7 +5310,9 @@ "required": false, "type": "string", "description": "Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.", - "x-ms-parameter-grouping": { "name": "access-condition" }, + "x-ms-parameter-grouping": { + "name": "access-condition" + }, "x-ms-parameter-location": "method" }, "PreferHeaderParameter": { @@ -4977,4 +5346,4 @@ "x-ms-parameter-location": "client" } } -} +} \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md index f3f7c2a7a25e..928dae45bdd6 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md @@ -103,18 +103,37 @@ csharp: output-folder: $(csharp-sdks-folder)/Search/DataPlane/Microsoft.Azure.Search.Service/Generated directive: - # TODO: remove this workaround once AutoRest fixes the incorrect code generation when using a parameterized host and both client and operation groups paths. + # TODO: Remove this workaround once AutoRest fixes the incorrect code generation when using a parameterized host and both client and operation groups paths. - from: source-file-csharp where: $ - transform: > - if ( $.includes("class DataSourcesOperations") || $.includes("class IndexersOperations") || + transform: >- + if ($.includes("class DataSourcesOperations") || $.includes("class IndexersOperations") || $.includes("class IndexesOperations") || $.includes("class SynonymMapsOperations") || - $.includes("class SkillsetsOperations") ) + $.includes("class SkillsetsOperations")) return $. - replace(/this.SearchServiceName/g,"Client.SearchServiceName"). - replace(/this.SearchDnsSuffix/g,"Client.SearchDnsSuffix"). - replace(/\"Client.SearchServiceName\"/g,"\"this.Client.SearchServiceName\""). - replace(/\"Client.SearchDnsSuffix\"/g,"\"this.Client.SearchDnsSuffix\""); + replace( /this.SearchServiceName/g, "Client.SearchServiceName" ). + replace( /this.SearchDnsSuffix/g, "Client.SearchDnsSuffix" ). + replace( /\"Client.SearchServiceName\"/g, "\"this.Client.SearchServiceName\"" ). + replace( /\"Client.SearchDnsSuffix\"/g, "\"this.Client.SearchDnsSuffix\"" ); return $; +#### + # The following regex are required to make the generated Field class conform to the needs of the custom implementation + # that we've had in the Azure Search .NET SDK since it was first released. We've decided to keep the custom behavior of + # Field just for .NET for the sake of backward compatibility, but for other languages the client behavior will conform + # to the REST API. + # + # To achieve this, we need to make the generated constructors internal, as well as some of the generated properties. + - from: source-file-csharp + where: $ + transform: >- + return $. + replace( /public (Field\(\))/g, "internal $1" ). + replace( /public (Field\(string name,)/g, "internal $1" ). + replace( /public (bool\? Key { get; set; })/g, "internal $1" ). + replace( /public (bool\? Retrievable { get; set; })/g, "internal $1" ). + replace( /public (bool\? Searchable { get; set; })/g, "internal $1" ). + replace( /public (bool\? Filterable { get; set; })/g, "internal $1" ). + replace( /public (bool\? Sortable { get; set; })/g, "internal $1" ). + replace( /public (bool\? Facetable { get; set; })/g, "internal $1" ); ```