Skip to content

Commit

Permalink
Regeneration and Other changes (#9711)
Browse files Browse the repository at this point in the history
* Regeneration and Other changes

* Test Build Fix

* Minor Regenerate Change
  • Loading branch information
sarangan12 authored Jun 26, 2020
1 parent 37506da commit d0697b0
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .scripts/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function getSinglePackageName(typescriptReadmePath: string): Promis
const readmeBuffer: Buffer = await fs.readFile(typescriptReadmePath);
const yamlSectionBuffer = await getYamlSection(readmeBuffer, "``` yaml $(typescript)", "```");
const yamlSectionText = yamlSectionBuffer.toString();
const yamlSection = yaml.safeLoad(yamlSectionText);
const yamlSection:any = yaml.safeLoad(yamlSectionText);
return yamlSection["typescript"]["package-name"];
}

Expand Down
7 changes: 6 additions & 1 deletion sdk/search/search-documents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Release History

## 1.0.0-preview.5 (Unreleased)
## 11.0.0 (2020-07-06)
- Set `ConnectionString` value to `<unchanged>` in `SearchIndexerDataSourceConnection`, if the value is not set by the user.
- [Breaking] In Suggest API & Search API return values, a new property called `document` is introduced. All user-defined fields are moved inside this `document` property.
- [Breaking] In `analyzeText` API, the `text` parameter is moved from method level to inside `options` bag.
- [Breaking] In `search` API, `includeTotalResultCount` property is renamed to `includeTotalCount`.
- [Breaking] Modified the names of several properties. Please refer [#9321](https://github.com/Azure/azure-sdk-for-js/issues/9321) for a detailed list of renames.


## 1.0.0-preview.4 (2020-06-08)
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async function main() {
main();
```

For a more advanced search that uses [Lucene syntax](https://docs.microsoft.com/azure/search/query-lucene-syntax), specify `queryType` to be `all`:
For a more advanced search that uses [Lucene syntax](https://docs.microsoft.com/azure/search/query-lucene-syntax), specify `queryType` to be `full`:

```js
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/search-documents",
"version": "1.0.0-preview.5",
"version": "11.0.0",
"description": "Azure client library to use Cognitive Search for node.js and browser.",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "1.0.0-preview.5";
export const SDK_VERSION: string = "11.0.0";
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";

const packageName = "@azure/search-documents";
const packageVersion = "1.0.0-preview.5";
const packageVersion = "11.0.0";

export class SearchClientContext extends coreHttp.ServiceClient {
apiVersion: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@ export const ifNoneMatch: coreHttp.OperationParameter = {
}
}
};
export const indexName: coreHttp.OperationURLParameter = {
parameterPath: "indexName",
export const indexerName: coreHttp.OperationURLParameter = {
parameterPath: "indexerName",
mapper: {
required: true,
serializedName: "indexName",
serializedName: "indexerName",
type: {
name: "String"
}
}
};
export const indexerName: coreHttp.OperationURLParameter = {
parameterPath: "indexerName",
export const indexName: coreHttp.OperationURLParameter = {
parameterPath: "indexName",
mapper: {
required: true,
serializedName: "indexerName",
serializedName: "indexName",
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";

const packageName = "@azure/search-documents";
const packageVersion = "1.0.0-preview.5";
const packageVersion = "11.0.0";

export class SearchServiceClientContext extends coreHttp.ServiceClient {
apiVersion: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/searchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class SearchClient<T> {
/**
* The API version to use when communicating with the service.
*/
public readonly apiVersion: string = "2019-05-06-Preview";
public readonly apiVersion: string = "2020-06-30";

/**
* The endpoint of the search service
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/searchIndexClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class SearchIndexClient {
/**
* The API version to use when communicating with the service.
*/
public readonly apiVersion: string = "2019-05-06-Preview";
public readonly apiVersion: string = "2020-06-30";

/**
* The endpoint of the search service
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/searchIndexerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class SearchIndexerClient {
/**
* The API version to use when communicating with the service.
*/
public readonly apiVersion: string = "2019-05-06-Preview";
public readonly apiVersion: string = "2020-06-30";

/**
* The endpoint of the search service
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/swagger/Data.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../
source-code-folder-path: ./src/generated/data
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchindex.json
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2020-06-30/searchindex.json
add-credentials: false
title: SearchClient
use-extension:
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/swagger/Service.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../
source-code-folder-path: ./src/generated/service
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2020-06-30/searchservice.json
add-credentials: false
use-extension:
"@microsoft.azure/autorest.typescript": "5.0.1"
Expand Down

0 comments on commit d0697b0

Please sign in to comment.