@azure/search-documents 11.3.0-beta.6 → 11.3.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +492 -104
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +62 -0
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/models/parameters.js +15 -1
- package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/service/operations/aliases.js +166 -0
- package/dist-esm/src/generated/service/operations/aliases.js.map +1 -0
- package/dist-esm/src/generated/service/operations/index.js +1 -0
- package/dist-esm/src/generated/service/operations/index.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +9 -0
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +1 -0
- package/dist-esm/src/generated/service/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +2 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +149 -3
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/package.json +6 -6
- package/types/search-documents.d.ts +91 -0
|
@@ -8,6 +8,13 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
|
8
8
|
import { RestError } from '@azure/core-rest-pipeline';
|
|
9
9
|
import { TokenCredential } from '@azure/core-auth';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* An iterator for listing the aliases that exist in the Search service. Will make requests
|
|
13
|
+
* as needed during iteration. Use .byPage() to make one request to the server
|
|
14
|
+
* per iteration.
|
|
15
|
+
*/
|
|
16
|
+
export declare type AliasIterator = PagedAsyncIterableIterator<SearchIndexAlias, SearchIndexAlias[], {}>;
|
|
17
|
+
|
|
11
18
|
/** Information about a token returned by an analyzer. */
|
|
12
19
|
export declare interface AnalyzedTokenInfo {
|
|
13
20
|
/**
|
|
@@ -530,6 +537,11 @@ export declare interface CorsOptions {
|
|
|
530
537
|
*/
|
|
531
538
|
export declare type CountDocumentsOptions = OperationOptions;
|
|
532
539
|
|
|
540
|
+
/**
|
|
541
|
+
* Options for create alias operation.
|
|
542
|
+
*/
|
|
543
|
+
export declare type CreateAliasOptions = OperationOptions;
|
|
544
|
+
|
|
533
545
|
/**
|
|
534
546
|
* Options for create datasource operation.
|
|
535
547
|
*/
|
|
@@ -545,6 +557,16 @@ export declare type CreateIndexerOptions = OperationOptions;
|
|
|
545
557
|
*/
|
|
546
558
|
export declare type CreateIndexOptions = OperationOptions;
|
|
547
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Options for create or update alias operation.
|
|
562
|
+
*/
|
|
563
|
+
export declare interface CreateOrUpdateAliasOptions extends OperationOptions {
|
|
564
|
+
/**
|
|
565
|
+
* If set to true, Resource will be deleted only if the etag matches.
|
|
566
|
+
*/
|
|
567
|
+
onlyIfUnchanged?: boolean;
|
|
568
|
+
}
|
|
569
|
+
|
|
548
570
|
/**
|
|
549
571
|
* Options for create/update datasource operation.
|
|
550
572
|
*/
|
|
@@ -788,6 +810,16 @@ export declare type DefaultCognitiveServicesAccount = BaseCognitiveServicesAccou
|
|
|
788
810
|
odatatype: "#Microsoft.Azure.Search.DefaultCognitiveServices";
|
|
789
811
|
};
|
|
790
812
|
|
|
813
|
+
/**
|
|
814
|
+
* Options for delete alias operation.
|
|
815
|
+
*/
|
|
816
|
+
export declare interface DeleteAliasOptions extends OperationOptions {
|
|
817
|
+
/**
|
|
818
|
+
* If set to true, Resource will be deleted only if the etag matches.
|
|
819
|
+
*/
|
|
820
|
+
onlyIfUnchanged?: boolean;
|
|
821
|
+
}
|
|
822
|
+
|
|
791
823
|
/**
|
|
792
824
|
* Options for delete datasource operation.
|
|
793
825
|
*/
|
|
@@ -1101,6 +1133,11 @@ export declare class GeographyPoint {
|
|
|
1101
1133
|
toJSON(): Record<string, unknown>;
|
|
1102
1134
|
}
|
|
1103
1135
|
|
|
1136
|
+
/**
|
|
1137
|
+
* Options for get alias operation.
|
|
1138
|
+
*/
|
|
1139
|
+
export declare type GetAliasOptions = OperationOptions;
|
|
1140
|
+
|
|
1104
1141
|
/**
|
|
1105
1142
|
* Options for get datasource operation.
|
|
1106
1143
|
*/
|
|
@@ -3442,6 +3479,11 @@ export declare type LimitTokenFilter = BaseTokenFilter & {
|
|
|
3442
3479
|
*/
|
|
3443
3480
|
export declare type LineEnding = string;
|
|
3444
3481
|
|
|
3482
|
+
/**
|
|
3483
|
+
* Options for list aliases operation.
|
|
3484
|
+
*/
|
|
3485
|
+
export declare type ListAliasesOptions = OperationOptions;
|
|
3486
|
+
|
|
3445
3487
|
/**
|
|
3446
3488
|
* Options for a list data sources operation.
|
|
3447
3489
|
*/
|
|
@@ -4063,6 +4105,16 @@ export declare interface ScoringProfile {
|
|
|
4063
4105
|
/** Defines values for ScoringStatistics. */
|
|
4064
4106
|
export declare type ScoringStatistics = "local" | "global";
|
|
4065
4107
|
|
|
4108
|
+
/** Represents an index alias, which describes a mapping from the alias name to an index. The alias name can be used in place of the index name for supported operations. */
|
|
4109
|
+
export declare interface SearchAlias {
|
|
4110
|
+
/** The name of the alias. */
|
|
4111
|
+
name: string;
|
|
4112
|
+
/** The name of the index this alias maps to. Only one index name may be specified. */
|
|
4113
|
+
indexes: string[];
|
|
4114
|
+
/** The ETag of the alias. */
|
|
4115
|
+
etag?: string;
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4066
4118
|
/**
|
|
4067
4119
|
* Class used to perform operations against a search index,
|
|
4068
4120
|
* including querying documents in the index as well as
|
|
@@ -4367,6 +4419,11 @@ export declare interface SearchIndex {
|
|
|
4367
4419
|
etag?: string;
|
|
4368
4420
|
}
|
|
4369
4421
|
|
|
4422
|
+
/**
|
|
4423
|
+
* Search Alias object.
|
|
4424
|
+
*/
|
|
4425
|
+
export declare type SearchIndexAlias = SearchAlias;
|
|
4426
|
+
|
|
4370
4427
|
/**
|
|
4371
4428
|
* Class to perform operations to manage
|
|
4372
4429
|
* (create, update, list/delete)
|
|
@@ -4419,6 +4476,13 @@ export declare class SearchIndexClient {
|
|
|
4419
4476
|
* @param options - Options to the list index operation.
|
|
4420
4477
|
*/
|
|
4421
4478
|
listIndexes(options?: ListIndexesOptions): IndexIterator;
|
|
4479
|
+
private listAliasesPage;
|
|
4480
|
+
private listAliasesAll;
|
|
4481
|
+
/**
|
|
4482
|
+
* Lists all aliases available for a search service.
|
|
4483
|
+
* @param options - The options parameters.
|
|
4484
|
+
*/
|
|
4485
|
+
listAliases(options?: ListAliasesOptions): AliasIterator;
|
|
4422
4486
|
private listIndexesNamesPage;
|
|
4423
4487
|
private listIndexesNamesAll;
|
|
4424
4488
|
/**
|
|
@@ -4484,6 +4548,31 @@ export declare class SearchIndexClient {
|
|
|
4484
4548
|
* @param options - Additional optional arguments.
|
|
4485
4549
|
*/
|
|
4486
4550
|
deleteSynonymMap(synonymMap: string | SynonymMap, options?: DeleteSynonymMapOptions): Promise<void>;
|
|
4551
|
+
/**
|
|
4552
|
+
* Creates a new search alias or updates an alias if it already exists.
|
|
4553
|
+
* @param alias - The definition of the alias to create or update.
|
|
4554
|
+
* @param options - The options parameters.
|
|
4555
|
+
*/
|
|
4556
|
+
createOrUpdateAlias(alias: SearchIndexAlias, options?: CreateOrUpdateAliasOptions): Promise<SearchIndexAlias>;
|
|
4557
|
+
/**
|
|
4558
|
+
* Creates a new search alias.
|
|
4559
|
+
* @param alias - The definition of the alias to create.
|
|
4560
|
+
* @param options - The options parameters.
|
|
4561
|
+
*/
|
|
4562
|
+
createAlias(alias: SearchIndexAlias, options?: CreateAliasOptions): Promise<SearchIndexAlias>;
|
|
4563
|
+
/**
|
|
4564
|
+
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
4565
|
+
* recovery option. The mapped index is untouched by this operation.
|
|
4566
|
+
* @param alias - Alias/Name name of the alias to delete.
|
|
4567
|
+
* @param options - The options parameters.
|
|
4568
|
+
*/
|
|
4569
|
+
deleteAlias(alias: string | SearchIndexAlias, options?: DeleteAliasOptions): Promise<void>;
|
|
4570
|
+
/**
|
|
4571
|
+
* Retrieves an alias definition.
|
|
4572
|
+
* @param aliasName - The name of the alias to retrieve.
|
|
4573
|
+
* @param options - The options parameters.
|
|
4574
|
+
*/
|
|
4575
|
+
getAlias(aliasName: string, options?: GetAliasOptions): Promise<SearchIndexAlias>;
|
|
4487
4576
|
/**
|
|
4488
4577
|
* Retrieves statistics about an index, such as the count of documents and the size
|
|
4489
4578
|
* of index storage.
|
|
@@ -5782,6 +5871,8 @@ export declare type SentimentSkillV3 = BaseSearchIndexerSkill & {
|
|
|
5782
5871
|
|
|
5783
5872
|
/** Represents service-level resource counters and quotas. */
|
|
5784
5873
|
export declare interface ServiceCounters {
|
|
5874
|
+
/** Total number of aliases. */
|
|
5875
|
+
aliasCounter?: ResourceCounter;
|
|
5785
5876
|
/** Total number of documents across all indexes in the service. */
|
|
5786
5877
|
documentCounter: ResourceCounter;
|
|
5787
5878
|
/** Total number of indexes. */
|