@azure/search-documents 12.2.0-beta.1 → 12.2.0-beta.2
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/dist/index.js +430 -46
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +26 -14
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +112 -9
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +9 -0
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +1 -0
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js +1 -1
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +62 -6
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +124 -0
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/index.js +2 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
- package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/src/searchClient.js +43 -6
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +5 -2
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +5 -1
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +33 -7
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/dist-esm/src/synonymMapHelper.browser.js.map +1 -1
- package/dist-esm/src/synonymMapHelper.js.map +1 -1
- package/package.json +8 -11
- package/types/search-documents.d.ts +286 -37
package/dist/index.js
CHANGED
|
@@ -42,12 +42,12 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
|
42
42
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
43
43
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
44
44
|
*/
|
|
45
|
-
/** Known values of {@link
|
|
46
|
-
var
|
|
47
|
-
(function (
|
|
48
|
-
/** Api Version '2024-
|
|
49
|
-
|
|
50
|
-
})(
|
|
45
|
+
/** Known values of {@link ApiVersion20241101Preview} that the service accepts. */
|
|
46
|
+
var KnownApiVersion20241101Preview$1;
|
|
47
|
+
(function (KnownApiVersion20241101Preview) {
|
|
48
|
+
/** Api Version '2024-11-01-preview' */
|
|
49
|
+
KnownApiVersion20241101Preview["TwoThousandTwentyFour1101Preview"] = "2024-11-01-preview";
|
|
50
|
+
})(KnownApiVersion20241101Preview$1 || (KnownApiVersion20241101Preview$1 = {}));
|
|
51
51
|
/** Known values of {@link SemanticErrorMode} that the service accepts. */
|
|
52
52
|
exports.KnownSemanticErrorMode = void 0;
|
|
53
53
|
(function (KnownSemanticErrorMode) {
|
|
@@ -72,6 +72,14 @@ var KnownQueryCaptionType;
|
|
|
72
72
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
73
73
|
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
74
74
|
})(KnownQueryCaptionType || (KnownQueryCaptionType = {}));
|
|
75
|
+
/** Known values of {@link QueryRewritesType} that the service accepts. */
|
|
76
|
+
var KnownQueryRewritesType;
|
|
77
|
+
(function (KnownQueryRewritesType) {
|
|
78
|
+
/** Do not generate additional query rewrites for this query. */
|
|
79
|
+
KnownQueryRewritesType["None"] = "none";
|
|
80
|
+
/** Generate alternative query terms to increase the recall of a search request. */
|
|
81
|
+
KnownQueryRewritesType["Generative"] = "generative";
|
|
82
|
+
})(KnownQueryRewritesType || (KnownQueryRewritesType = {}));
|
|
75
83
|
/** Known values of {@link QueryDebugMode} that the service accepts. */
|
|
76
84
|
exports.KnownQueryDebugMode = void 0;
|
|
77
85
|
(function (KnownQueryDebugMode) {
|
|
@@ -79,6 +87,12 @@ exports.KnownQueryDebugMode = void 0;
|
|
|
79
87
|
KnownQueryDebugMode["Disabled"] = "disabled";
|
|
80
88
|
/** Allows the user to further explore their reranked results. */
|
|
81
89
|
KnownQueryDebugMode["Semantic"] = "semantic";
|
|
90
|
+
/** Allows the user to further explore their hybrid and vector query results. */
|
|
91
|
+
KnownQueryDebugMode["Vector"] = "vector";
|
|
92
|
+
/** Allows the user to explore the list of query rewrites generated for their search request. */
|
|
93
|
+
KnownQueryDebugMode["QueryRewrites"] = "queryRewrites";
|
|
94
|
+
/** Turn on all debug options. */
|
|
95
|
+
KnownQueryDebugMode["All"] = "all";
|
|
82
96
|
})(exports.KnownQueryDebugMode || (exports.KnownQueryDebugMode = {}));
|
|
83
97
|
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
84
98
|
exports.KnownQueryLanguage = void 0;
|
|
@@ -228,22 +242,14 @@ exports.KnownQueryLanguage = void 0;
|
|
|
228
242
|
/** Query language value for Urdu (Pakistan). */
|
|
229
243
|
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
230
244
|
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
231
|
-
/** Known values of {@link Speller} that the service accepts. */
|
|
232
|
-
exports.KnownSpeller = void 0;
|
|
233
|
-
(function (KnownSpeller) {
|
|
234
|
-
/** Speller not enabled. */
|
|
235
|
-
KnownSpeller["None"] = "none";
|
|
236
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
237
|
-
KnownSpeller["Lexicon"] = "lexicon";
|
|
238
|
-
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
239
245
|
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
240
|
-
exports.
|
|
246
|
+
exports.KnownQuerySpeller = void 0;
|
|
241
247
|
(function (KnownQuerySpellerType) {
|
|
242
248
|
/** Speller not enabled. */
|
|
243
249
|
KnownQuerySpellerType["None"] = "none";
|
|
244
250
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
245
251
|
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
246
|
-
})(exports.
|
|
252
|
+
})(exports.KnownQuerySpeller || (exports.KnownQuerySpeller = {}));
|
|
247
253
|
/** Known values of {@link VectorQueryKind} that the service accepts. */
|
|
248
254
|
exports.KnownVectorQueryKind = void 0;
|
|
249
255
|
(function (KnownVectorQueryKind) {
|
|
@@ -308,6 +314,12 @@ exports.KnownSemanticSearchResultsType = void 0;
|
|
|
308
314
|
/** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */
|
|
309
315
|
KnownSemanticSearchResultsType["RerankedResults"] = "rerankedResults";
|
|
310
316
|
})(exports.KnownSemanticSearchResultsType || (exports.KnownSemanticSearchResultsType = {}));
|
|
317
|
+
/** Known values of {@link SemanticQueryRewritesResultType} that the service accepts. */
|
|
318
|
+
exports.KnownSemanticQueryRewritesResultType = void 0;
|
|
319
|
+
(function (KnownSemanticQueryRewritesResultType) {
|
|
320
|
+
/** Query rewrites were not successfully generated for this request. Only the original query was used to retrieve the results. */
|
|
321
|
+
KnownSemanticQueryRewritesResultType["OriginalQueryOnly"] = "originalQueryOnly";
|
|
322
|
+
})(exports.KnownSemanticQueryRewritesResultType || (exports.KnownSemanticQueryRewritesResultType = {}));
|
|
311
323
|
|
|
312
324
|
/*
|
|
313
325
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -316,12 +328,12 @@ exports.KnownSemanticSearchResultsType = void 0;
|
|
|
316
328
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
317
329
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
318
330
|
*/
|
|
319
|
-
/** Known values of {@link
|
|
320
|
-
var
|
|
321
|
-
(function (
|
|
322
|
-
/** Api Version '2024-
|
|
323
|
-
|
|
324
|
-
})(
|
|
331
|
+
/** Known values of {@link ApiVersion20241101Preview} that the service accepts. */
|
|
332
|
+
var KnownApiVersion20241101Preview;
|
|
333
|
+
(function (KnownApiVersion20241101Preview) {
|
|
334
|
+
/** Api Version '2024-11-01-preview' */
|
|
335
|
+
KnownApiVersion20241101Preview["TwoThousandTwentyFour1101Preview"] = "2024-11-01-preview";
|
|
336
|
+
})(KnownApiVersion20241101Preview || (KnownApiVersion20241101Preview = {}));
|
|
325
337
|
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
326
338
|
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
327
339
|
(function (KnownSearchIndexerDataSourceType) {
|
|
@@ -355,7 +367,33 @@ exports.KnownBlobIndexerParsingMode = void 0;
|
|
|
355
367
|
KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
|
|
356
368
|
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */
|
|
357
369
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
370
|
+
/** Set to markdown to extract content from markdown files. */
|
|
371
|
+
KnownBlobIndexerParsingMode["Markdown"] = "markdown";
|
|
358
372
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
373
|
+
/** Known values of {@link MarkdownParsingSubmode} that the service accepts. */
|
|
374
|
+
exports.KnownMarkdownParsingSubmode = void 0;
|
|
375
|
+
(function (KnownMarkdownParsingSubmode) {
|
|
376
|
+
/** Indicates that each section of the markdown file (up to a specified depth) will be parsed into individual search documents. This can result in a single markdown file producing multiple search documents. This is the default sub-mode. */
|
|
377
|
+
KnownMarkdownParsingSubmode["OneToMany"] = "oneToMany";
|
|
378
|
+
/** Indicates that each markdown file will be parsed into a single search document. */
|
|
379
|
+
KnownMarkdownParsingSubmode["OneToOne"] = "oneToOne";
|
|
380
|
+
})(exports.KnownMarkdownParsingSubmode || (exports.KnownMarkdownParsingSubmode = {}));
|
|
381
|
+
/** Known values of {@link MarkdownHeaderDepth} that the service accepts. */
|
|
382
|
+
exports.KnownMarkdownHeaderDepth = void 0;
|
|
383
|
+
(function (KnownMarkdownHeaderDepth) {
|
|
384
|
+
/** Indicates that headers up to a level of h1 will be considered while grouping markdown content. */
|
|
385
|
+
KnownMarkdownHeaderDepth["H1"] = "h1";
|
|
386
|
+
/** Indicates that headers up to a level of h2 will be considered while grouping markdown content. */
|
|
387
|
+
KnownMarkdownHeaderDepth["H2"] = "h2";
|
|
388
|
+
/** Indicates that headers up to a level of h3 will be considered while grouping markdown content. */
|
|
389
|
+
KnownMarkdownHeaderDepth["H3"] = "h3";
|
|
390
|
+
/** Indicates that headers up to a level of h4 will be considered while grouping markdown content. */
|
|
391
|
+
KnownMarkdownHeaderDepth["H4"] = "h4";
|
|
392
|
+
/** Indicates that headers up to a level of h5 will be considered while grouping markdown content. */
|
|
393
|
+
KnownMarkdownHeaderDepth["H5"] = "h5";
|
|
394
|
+
/** Indicates that headers up to a level of h6 will be considered while grouping markdown content. This is the default. */
|
|
395
|
+
KnownMarkdownHeaderDepth["H6"] = "h6";
|
|
396
|
+
})(exports.KnownMarkdownHeaderDepth || (exports.KnownMarkdownHeaderDepth = {}));
|
|
359
397
|
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
360
398
|
exports.KnownBlobIndexerDataToExtract = void 0;
|
|
361
399
|
(function (KnownBlobIndexerDataToExtract) {
|
|
@@ -682,6 +720,14 @@ exports.KnownVectorSearchCompressionKind = void 0;
|
|
|
682
720
|
/** Binary Quantization, a type of compression method. In binary quantization, the original vectors values are compressed to the narrower binary type by discretizing and representing each component of a vector using binary values, thereby reducing the overall data size. */
|
|
683
721
|
KnownVectorSearchCompressionKind["BinaryQuantization"] = "binaryQuantization";
|
|
684
722
|
})(exports.KnownVectorSearchCompressionKind || (exports.KnownVectorSearchCompressionKind = {}));
|
|
723
|
+
/** Known values of {@link VectorSearchCompressionRescoreStorageMethod} that the service accepts. */
|
|
724
|
+
exports.KnownVectorSearchCompressionRescoreStorageMethod = void 0;
|
|
725
|
+
(function (KnownVectorSearchCompressionRescoreStorageMethod) {
|
|
726
|
+
/** This option preserves the original full-precision vectors. Choose this option for maximum flexibility and highest quality of compressed search results. This consumes more storage but allows for rescoring and oversampling. */
|
|
727
|
+
KnownVectorSearchCompressionRescoreStorageMethod["PreserveOriginals"] = "preserveOriginals";
|
|
728
|
+
/** This option discards the original full-precision vectors. Choose this option for maximum storage savings. Since this option does not allow for rescoring and oversampling, it will often cause slight to moderate reductions in quality. */
|
|
729
|
+
KnownVectorSearchCompressionRescoreStorageMethod["DiscardOriginals"] = "discardOriginals";
|
|
730
|
+
})(exports.KnownVectorSearchCompressionRescoreStorageMethod || (exports.KnownVectorSearchCompressionRescoreStorageMethod = {}));
|
|
685
731
|
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
686
732
|
var KnownTokenFilterName;
|
|
687
733
|
(function (KnownTokenFilterName) {
|
|
@@ -1708,6 +1754,28 @@ exports.KnownTextTranslationSkillLanguage = void 0;
|
|
|
1708
1754
|
/** Punjabi */
|
|
1709
1755
|
KnownTextTranslationSkillLanguage["Pa"] = "pa";
|
|
1710
1756
|
})(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
|
|
1757
|
+
/** Known values of {@link DocumentIntelligenceLayoutSkillOutputMode} that the service accepts. */
|
|
1758
|
+
exports.KnownDocumentIntelligenceLayoutSkillOutputMode = void 0;
|
|
1759
|
+
(function (KnownDocumentIntelligenceLayoutSkillOutputMode) {
|
|
1760
|
+
/** Specify the deepest markdown header section to parse. */
|
|
1761
|
+
KnownDocumentIntelligenceLayoutSkillOutputMode["OneToMany"] = "oneToMany";
|
|
1762
|
+
})(exports.KnownDocumentIntelligenceLayoutSkillOutputMode || (exports.KnownDocumentIntelligenceLayoutSkillOutputMode = {}));
|
|
1763
|
+
/** Known values of {@link DocumentIntelligenceLayoutSkillMarkdownHeaderDepth} that the service accepts. */
|
|
1764
|
+
exports.KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth = void 0;
|
|
1765
|
+
(function (KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth) {
|
|
1766
|
+
/** Header level 1. */
|
|
1767
|
+
KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H1"] = "h1";
|
|
1768
|
+
/** Header level 2. */
|
|
1769
|
+
KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H2"] = "h2";
|
|
1770
|
+
/** Header level 3. */
|
|
1771
|
+
KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H3"] = "h3";
|
|
1772
|
+
/** Header level 4. */
|
|
1773
|
+
KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H4"] = "h4";
|
|
1774
|
+
/** Header level 5. */
|
|
1775
|
+
KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H5"] = "h5";
|
|
1776
|
+
/** Header level 6. */
|
|
1777
|
+
KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H6"] = "h6";
|
|
1778
|
+
})(exports.KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth || (exports.KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth = {}));
|
|
1711
1779
|
/** Known values of {@link LexicalTokenizerName} that the service accepts. */
|
|
1712
1780
|
var KnownLexicalTokenizerName;
|
|
1713
1781
|
(function (KnownLexicalTokenizerName) {
|
|
@@ -2125,6 +2193,20 @@ const SearchDocumentsResult = {
|
|
|
2125
2193
|
name: "String",
|
|
2126
2194
|
},
|
|
2127
2195
|
},
|
|
2196
|
+
semanticQueryRewritesResultType: {
|
|
2197
|
+
serializedName: "@search\\.semanticQueryRewritesResultType",
|
|
2198
|
+
readOnly: true,
|
|
2199
|
+
type: {
|
|
2200
|
+
name: "String",
|
|
2201
|
+
},
|
|
2202
|
+
},
|
|
2203
|
+
debugInfo: {
|
|
2204
|
+
serializedName: "@search\\.debug",
|
|
2205
|
+
type: {
|
|
2206
|
+
name: "Composite",
|
|
2207
|
+
className: "DebugInfo",
|
|
2208
|
+
},
|
|
2209
|
+
},
|
|
2128
2210
|
},
|
|
2129
2211
|
},
|
|
2130
2212
|
};
|
|
@@ -2141,6 +2223,21 @@ const FacetResult = {
|
|
|
2141
2223
|
name: "Number",
|
|
2142
2224
|
},
|
|
2143
2225
|
},
|
|
2226
|
+
facets: {
|
|
2227
|
+
serializedName: "@search\\.facets",
|
|
2228
|
+
readOnly: true,
|
|
2229
|
+
type: {
|
|
2230
|
+
name: "Dictionary",
|
|
2231
|
+
value: {
|
|
2232
|
+
type: {
|
|
2233
|
+
name: "Sequence",
|
|
2234
|
+
element: {
|
|
2235
|
+
type: { name: "Composite", className: "FacetResult" },
|
|
2236
|
+
},
|
|
2237
|
+
},
|
|
2238
|
+
},
|
|
2239
|
+
},
|
|
2240
|
+
},
|
|
2144
2241
|
},
|
|
2145
2242
|
},
|
|
2146
2243
|
};
|
|
@@ -2375,6 +2472,12 @@ const SearchRequest = {
|
|
|
2375
2472
|
name: "String",
|
|
2376
2473
|
},
|
|
2377
2474
|
},
|
|
2475
|
+
queryRewrites: {
|
|
2476
|
+
serializedName: "queryRewrites",
|
|
2477
|
+
type: {
|
|
2478
|
+
name: "String",
|
|
2479
|
+
},
|
|
2480
|
+
},
|
|
2378
2481
|
semanticFields: {
|
|
2379
2482
|
serializedName: "semanticFields",
|
|
2380
2483
|
type: {
|
|
@@ -2560,16 +2663,9 @@ const SearchResult = {
|
|
|
2560
2663
|
},
|
|
2561
2664
|
documentDebugInfo: {
|
|
2562
2665
|
serializedName: "@search\\.documentDebugInfo",
|
|
2563
|
-
readOnly: true,
|
|
2564
|
-
nullable: true,
|
|
2565
2666
|
type: {
|
|
2566
|
-
name: "
|
|
2567
|
-
|
|
2568
|
-
type: {
|
|
2569
|
-
name: "Composite",
|
|
2570
|
-
className: "DocumentDebugInfo",
|
|
2571
|
-
},
|
|
2572
|
-
},
|
|
2667
|
+
name: "Composite",
|
|
2668
|
+
className: "DocumentDebugInfo",
|
|
2573
2669
|
},
|
|
2574
2670
|
},
|
|
2575
2671
|
},
|
|
@@ -2812,6 +2908,76 @@ const SingleVectorFieldResult = {
|
|
|
2812
2908
|
},
|
|
2813
2909
|
},
|
|
2814
2910
|
};
|
|
2911
|
+
const DebugInfo = {
|
|
2912
|
+
type: {
|
|
2913
|
+
name: "Composite",
|
|
2914
|
+
className: "DebugInfo",
|
|
2915
|
+
modelProperties: {
|
|
2916
|
+
queryRewrites: {
|
|
2917
|
+
serializedName: "queryRewrites",
|
|
2918
|
+
type: {
|
|
2919
|
+
name: "Composite",
|
|
2920
|
+
className: "QueryRewritesDebugInfo",
|
|
2921
|
+
},
|
|
2922
|
+
},
|
|
2923
|
+
},
|
|
2924
|
+
},
|
|
2925
|
+
};
|
|
2926
|
+
const QueryRewritesDebugInfo = {
|
|
2927
|
+
type: {
|
|
2928
|
+
name: "Composite",
|
|
2929
|
+
className: "QueryRewritesDebugInfo",
|
|
2930
|
+
modelProperties: {
|
|
2931
|
+
text: {
|
|
2932
|
+
serializedName: "text",
|
|
2933
|
+
type: {
|
|
2934
|
+
name: "Composite",
|
|
2935
|
+
className: "QueryRewritesValuesDebugInfo",
|
|
2936
|
+
},
|
|
2937
|
+
},
|
|
2938
|
+
vectors: {
|
|
2939
|
+
serializedName: "vectors",
|
|
2940
|
+
readOnly: true,
|
|
2941
|
+
type: {
|
|
2942
|
+
name: "Sequence",
|
|
2943
|
+
element: {
|
|
2944
|
+
type: {
|
|
2945
|
+
name: "Composite",
|
|
2946
|
+
className: "QueryRewritesValuesDebugInfo",
|
|
2947
|
+
},
|
|
2948
|
+
},
|
|
2949
|
+
},
|
|
2950
|
+
},
|
|
2951
|
+
},
|
|
2952
|
+
},
|
|
2953
|
+
};
|
|
2954
|
+
const QueryRewritesValuesDebugInfo = {
|
|
2955
|
+
type: {
|
|
2956
|
+
name: "Composite",
|
|
2957
|
+
className: "QueryRewritesValuesDebugInfo",
|
|
2958
|
+
modelProperties: {
|
|
2959
|
+
inputQuery: {
|
|
2960
|
+
serializedName: "inputQuery",
|
|
2961
|
+
readOnly: true,
|
|
2962
|
+
type: {
|
|
2963
|
+
name: "String",
|
|
2964
|
+
},
|
|
2965
|
+
},
|
|
2966
|
+
rewrites: {
|
|
2967
|
+
serializedName: "rewrites",
|
|
2968
|
+
readOnly: true,
|
|
2969
|
+
type: {
|
|
2970
|
+
name: "Sequence",
|
|
2971
|
+
element: {
|
|
2972
|
+
type: {
|
|
2973
|
+
name: "String",
|
|
2974
|
+
},
|
|
2975
|
+
},
|
|
2976
|
+
},
|
|
2977
|
+
},
|
|
2978
|
+
},
|
|
2979
|
+
},
|
|
2980
|
+
};
|
|
2815
2981
|
const SuggestDocumentsResult = {
|
|
2816
2982
|
type: {
|
|
2817
2983
|
name: "Composite",
|
|
@@ -3191,6 +3357,11 @@ const VectorizableTextQuery = {
|
|
|
3191
3357
|
type: {
|
|
3192
3358
|
name: "String",
|
|
3193
3359
|
},
|
|
3360
|
+
}, queryRewrites: {
|
|
3361
|
+
serializedName: "queryRewrites",
|
|
3362
|
+
type: {
|
|
3363
|
+
name: "String",
|
|
3364
|
+
},
|
|
3194
3365
|
} }),
|
|
3195
3366
|
},
|
|
3196
3367
|
};
|
|
@@ -3272,6 +3443,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
3272
3443
|
AutocompleteItem: AutocompleteItem,
|
|
3273
3444
|
AutocompleteRequest: AutocompleteRequest,
|
|
3274
3445
|
AutocompleteResult: AutocompleteResult,
|
|
3446
|
+
DebugInfo: DebugInfo,
|
|
3275
3447
|
DocumentDebugInfo: DocumentDebugInfo,
|
|
3276
3448
|
ErrorAdditionalInfo: ErrorAdditionalInfo$1,
|
|
3277
3449
|
ErrorDetail: ErrorDetail$1,
|
|
@@ -3287,6 +3459,8 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
3287
3459
|
QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
|
|
3288
3460
|
QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
|
|
3289
3461
|
QueryResultDocumentSubscores: QueryResultDocumentSubscores,
|
|
3462
|
+
QueryRewritesDebugInfo: QueryRewritesDebugInfo,
|
|
3463
|
+
QueryRewritesValuesDebugInfo: QueryRewritesValuesDebugInfo,
|
|
3290
3464
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
3291
3465
|
SearchRequest: SearchRequest,
|
|
3292
3466
|
SearchResult: SearchResult,
|
|
@@ -3624,6 +3798,15 @@ const semanticQuery = {
|
|
|
3624
3798
|
},
|
|
3625
3799
|
},
|
|
3626
3800
|
};
|
|
3801
|
+
const queryRewrites = {
|
|
3802
|
+
parameterPath: ["options", "searchOptions", "queryRewrites"],
|
|
3803
|
+
mapper: {
|
|
3804
|
+
serializedName: "queryRewrites",
|
|
3805
|
+
type: {
|
|
3806
|
+
name: "String",
|
|
3807
|
+
},
|
|
3808
|
+
},
|
|
3809
|
+
};
|
|
3627
3810
|
const debug = {
|
|
3628
3811
|
parameterPath: ["options", "searchOptions", "debug"],
|
|
3629
3812
|
mapper: {
|
|
@@ -4065,6 +4248,7 @@ const searchGetOperationSpec = {
|
|
|
4065
4248
|
answers,
|
|
4066
4249
|
captions,
|
|
4067
4250
|
semanticQuery,
|
|
4251
|
+
queryRewrites,
|
|
4068
4252
|
debug,
|
|
4069
4253
|
queryLanguage,
|
|
4070
4254
|
speller,
|
|
@@ -4259,7 +4443,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
|
|
|
4259
4443
|
const defaults = {
|
|
4260
4444
|
requestContentType: "application/json; charset=utf-8",
|
|
4261
4445
|
};
|
|
4262
|
-
const packageDetails = `azsdk-js-search-documents/12.2.0-beta.
|
|
4446
|
+
const packageDetails = `azsdk-js-search-documents/12.2.0-beta.2`;
|
|
4263
4447
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4264
4448
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4265
4449
|
: `${packageDetails}`;
|
|
@@ -5240,6 +5424,7 @@ const knownSkills = {
|
|
|
5240
5424
|
"#Microsoft.Skills.Vision.OcrSkill": true,
|
|
5241
5425
|
"#Microsoft.Skills.Custom.AmlSkill": true,
|
|
5242
5426
|
"#Microsoft.Skills.Vision.VectorizeSkill": true,
|
|
5427
|
+
"#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill": true,
|
|
5243
5428
|
};
|
|
5244
5429
|
function convertSkillsToPublic(skills) {
|
|
5245
5430
|
if (!skills) {
|
|
@@ -5252,18 +5437,43 @@ function convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount) {
|
|
|
5252
5437
|
if (!cognitiveServicesAccount) {
|
|
5253
5438
|
return cognitiveServicesAccount;
|
|
5254
5439
|
}
|
|
5255
|
-
|
|
5440
|
+
switch (cognitiveServicesAccount.odatatype) {
|
|
5441
|
+
case "#Microsoft.Azure.Search.AIServicesByIdentity":
|
|
5442
|
+
case "#Microsoft.Azure.Search.DefaultCognitiveServices":
|
|
5443
|
+
case "#Microsoft.Azure.Search.CognitiveServicesByKey":
|
|
5444
|
+
case "#Microsoft.Azure.Search.AIServicesByKey":
|
|
5445
|
+
return cognitiveServicesAccount;
|
|
5446
|
+
default: {
|
|
5447
|
+
logger.warning(`Unsupported Cognitive Services account odatatype: ${cognitiveServicesAccount.odatatype}`);
|
|
5448
|
+
return cognitiveServicesAccount;
|
|
5449
|
+
}
|
|
5450
|
+
}
|
|
5256
5451
|
}
|
|
5257
5452
|
function convertCognitiveServicesAccountToPublic(cognitiveServicesAccount) {
|
|
5453
|
+
var _a;
|
|
5258
5454
|
if (!cognitiveServicesAccount) {
|
|
5259
5455
|
return cognitiveServicesAccount;
|
|
5260
5456
|
}
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5457
|
+
const deserializers = {
|
|
5458
|
+
"#Microsoft.Azure.Search.DefaultCognitiveServices": () => {
|
|
5459
|
+
return cognitiveServicesAccount;
|
|
5460
|
+
},
|
|
5461
|
+
"#Microsoft.Azure.Search.CognitiveServicesByKey": () => {
|
|
5462
|
+
return cognitiveServicesAccount;
|
|
5463
|
+
},
|
|
5464
|
+
"#Microsoft.Azure.Search.AIServicesByKey": () => {
|
|
5465
|
+
return cognitiveServicesAccount;
|
|
5466
|
+
},
|
|
5467
|
+
"#Microsoft.Azure.Search.AIServicesByIdentity": () => {
|
|
5468
|
+
const _a = cognitiveServicesAccount, { identity } = _a, restParams = tslib.__rest(_a, ["identity"]);
|
|
5469
|
+
return Object.assign(Object.assign({}, restParams), { identity: convertSearchIndexerDataIdentityToPublic(identity !== null && identity !== void 0 ? identity : undefined) });
|
|
5470
|
+
},
|
|
5471
|
+
};
|
|
5472
|
+
const defaultDeserializer = () => {
|
|
5473
|
+
logger.warning(`Unsupported Cognitive Services account odatatype: ${cognitiveServicesAccount.odatatype}`);
|
|
5265
5474
|
return cognitiveServicesAccount;
|
|
5266
|
-
}
|
|
5475
|
+
};
|
|
5476
|
+
return ((_a = deserializers[cognitiveServicesAccount.odatatype]) !== null && _a !== void 0 ? _a : defaultDeserializer)();
|
|
5267
5477
|
}
|
|
5268
5478
|
function convertTokenFiltersToGenerated(tokenFilters) {
|
|
5269
5479
|
if (!tokenFilters) {
|
|
@@ -5809,6 +6019,7 @@ class SearchClient {
|
|
|
5809
6019
|
* Retrieves the number of documents in the index.
|
|
5810
6020
|
* @param options - Options to the count operation.
|
|
5811
6021
|
*/
|
|
6022
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
5812
6023
|
async getDocumentsCount(options = {}) {
|
|
5813
6024
|
const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
|
|
5814
6025
|
try {
|
|
@@ -5893,9 +6104,9 @@ class SearchClient {
|
|
|
5893
6104
|
}
|
|
5894
6105
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
5895
6106
|
const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions, hybridSearch } = _a, restOptions = tslib.__rest(_a, ["includeTotalCount", "orderBy", "searchFields", "select", "vectorSearchOptions", "semanticSearchOptions", "hybridSearch"]);
|
|
5896
|
-
const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { semanticFields, configurationName, errorMode, answers, captions, debugMode } = _b, restSemanticOptions = tslib.__rest(_b, ["semanticFields", "configurationName", "errorMode", "answers", "captions", "debugMode"]);
|
|
6107
|
+
const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { semanticFields, configurationName, errorMode, answers, captions, debugMode, queryRewrites } = _b, restSemanticOptions = tslib.__rest(_b, ["semanticFields", "configurationName", "errorMode", "answers", "captions", "debugMode", "queryRewrites"]);
|
|
5897
6108
|
const _c = vectorSearchOptions !== null && vectorSearchOptions !== void 0 ? vectorSearchOptions : {}, { queries, filterMode } = _c, restVectorOptions = tslib.__rest(_c, ["queries", "filterMode"]);
|
|
5898
|
-
const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: queries === null || queries === void 0 ? void 0 : queries.map(this.convertVectorQuery.bind(this)), answers: this.convertQueryAnswers(answers), captions: this.convertQueryCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, debug: debugMode, vectorFilterMode: filterMode, hybridSearch: hybridSearch });
|
|
6109
|
+
const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: queries === null || queries === void 0 ? void 0 : queries.map(this.convertVectorQuery.bind(this)), answers: this.convertQueryAnswers(answers), captions: this.convertQueryCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, debug: debugMode, queryRewrites: this.convertQueryRewrites(queryRewrites), vectorFilterMode: filterMode, hybridSearch: hybridSearch });
|
|
5899
6110
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
|
|
5900
6111
|
try {
|
|
5901
6112
|
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
|
|
@@ -6298,13 +6509,16 @@ class SearchClient {
|
|
|
6298
6509
|
return answers;
|
|
6299
6510
|
}
|
|
6300
6511
|
const config = [];
|
|
6301
|
-
const { answerType: output, count, threshold } = answers;
|
|
6512
|
+
const { answerType: output, count, threshold, maxAnswerLength } = answers;
|
|
6302
6513
|
if (count) {
|
|
6303
6514
|
config.push(`count-${count}`);
|
|
6304
6515
|
}
|
|
6305
6516
|
if (threshold) {
|
|
6306
6517
|
config.push(`threshold-${threshold}`);
|
|
6307
6518
|
}
|
|
6519
|
+
if (maxAnswerLength) {
|
|
6520
|
+
config.push(`maxcharlength-${maxAnswerLength}`);
|
|
6521
|
+
}
|
|
6308
6522
|
if (config.length) {
|
|
6309
6523
|
return output + `|${config.join(",")}`;
|
|
6310
6524
|
}
|
|
@@ -6315,17 +6529,51 @@ class SearchClient {
|
|
|
6315
6529
|
return captions;
|
|
6316
6530
|
}
|
|
6317
6531
|
const config = [];
|
|
6318
|
-
const { captionType: output, highlight } = captions;
|
|
6532
|
+
const { captionType: output, highlight, maxCaptionLength } = captions;
|
|
6319
6533
|
if (highlight !== undefined) {
|
|
6320
6534
|
config.push(`highlight-${highlight}`);
|
|
6321
6535
|
}
|
|
6536
|
+
if (maxCaptionLength) {
|
|
6537
|
+
config.push(`maxcharlength-${maxCaptionLength}`);
|
|
6538
|
+
}
|
|
6322
6539
|
if (config.length) {
|
|
6323
6540
|
return output + `|${config.join(",")}`;
|
|
6324
6541
|
}
|
|
6325
6542
|
return output;
|
|
6326
6543
|
}
|
|
6327
6544
|
convertVectorQuery(vectorQuery) {
|
|
6328
|
-
|
|
6545
|
+
switch (vectorQuery.kind) {
|
|
6546
|
+
case "text": {
|
|
6547
|
+
const { fields, queryRewrites } = vectorQuery, restFields = tslib.__rest(vectorQuery, ["fields", "queryRewrites"]);
|
|
6548
|
+
return Object.assign(Object.assign({}, restFields), { fields: this.convertVectorQueryFields(fields), queryRewrites: this.convertQueryRewrites(queryRewrites) });
|
|
6549
|
+
}
|
|
6550
|
+
case "vector":
|
|
6551
|
+
case "imageUrl":
|
|
6552
|
+
case "imageBinary": {
|
|
6553
|
+
return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
|
|
6554
|
+
}
|
|
6555
|
+
default: {
|
|
6556
|
+
logger.warning("Unknown vector query kind; sending without serialization");
|
|
6557
|
+
return vectorQuery;
|
|
6558
|
+
}
|
|
6559
|
+
}
|
|
6560
|
+
}
|
|
6561
|
+
convertQueryRewrites(queryRewrites) {
|
|
6562
|
+
if (!queryRewrites) {
|
|
6563
|
+
return queryRewrites;
|
|
6564
|
+
}
|
|
6565
|
+
const { rewritesType: baseOutput } = queryRewrites;
|
|
6566
|
+
switch (baseOutput) {
|
|
6567
|
+
case "generative": {
|
|
6568
|
+
const { count } = queryRewrites;
|
|
6569
|
+
const config = [...(count === undefined ? [] : [`count-${count}`])];
|
|
6570
|
+
if (config.length)
|
|
6571
|
+
return baseOutput + `|${config.join(",")}`;
|
|
6572
|
+
return baseOutput;
|
|
6573
|
+
}
|
|
6574
|
+
default:
|
|
6575
|
+
return baseOutput;
|
|
6576
|
+
}
|
|
6329
6577
|
}
|
|
6330
6578
|
}
|
|
6331
6579
|
|
|
@@ -6949,6 +7197,22 @@ const IndexingParametersConfiguration = {
|
|
|
6949
7197
|
name: "Boolean",
|
|
6950
7198
|
},
|
|
6951
7199
|
},
|
|
7200
|
+
markdownParsingSubmode: {
|
|
7201
|
+
defaultValue: "oneToMany",
|
|
7202
|
+
serializedName: "markdownParsingSubmode",
|
|
7203
|
+
nullable: true,
|
|
7204
|
+
type: {
|
|
7205
|
+
name: "String",
|
|
7206
|
+
},
|
|
7207
|
+
},
|
|
7208
|
+
markdownHeaderDepth: {
|
|
7209
|
+
defaultValue: "h6",
|
|
7210
|
+
serializedName: "markdownHeaderDepth",
|
|
7211
|
+
nullable: true,
|
|
7212
|
+
type: {
|
|
7213
|
+
name: "String",
|
|
7214
|
+
},
|
|
7215
|
+
},
|
|
6952
7216
|
documentRoot: {
|
|
6953
7217
|
serializedName: "documentRoot",
|
|
6954
7218
|
type: {
|
|
@@ -8908,6 +9172,13 @@ const VectorSearchCompression = {
|
|
|
8908
9172
|
name: "Number",
|
|
8909
9173
|
},
|
|
8910
9174
|
},
|
|
9175
|
+
rescoringOptions: {
|
|
9176
|
+
serializedName: "rescoringOptions",
|
|
9177
|
+
type: {
|
|
9178
|
+
name: "Composite",
|
|
9179
|
+
className: "RescoringOptions",
|
|
9180
|
+
},
|
|
9181
|
+
},
|
|
8911
9182
|
truncationDimension: {
|
|
8912
9183
|
serializedName: "truncationDimension",
|
|
8913
9184
|
nullable: true,
|
|
@@ -8918,6 +9189,36 @@ const VectorSearchCompression = {
|
|
|
8918
9189
|
},
|
|
8919
9190
|
},
|
|
8920
9191
|
};
|
|
9192
|
+
const RescoringOptions = {
|
|
9193
|
+
type: {
|
|
9194
|
+
name: "Composite",
|
|
9195
|
+
className: "RescoringOptions",
|
|
9196
|
+
modelProperties: {
|
|
9197
|
+
enableRescoring: {
|
|
9198
|
+
defaultValue: true,
|
|
9199
|
+
serializedName: "enableRescoring",
|
|
9200
|
+
nullable: true,
|
|
9201
|
+
type: {
|
|
9202
|
+
name: "Boolean",
|
|
9203
|
+
},
|
|
9204
|
+
},
|
|
9205
|
+
defaultOversampling: {
|
|
9206
|
+
serializedName: "defaultOversampling",
|
|
9207
|
+
nullable: true,
|
|
9208
|
+
type: {
|
|
9209
|
+
name: "Number",
|
|
9210
|
+
},
|
|
9211
|
+
},
|
|
9212
|
+
rescoreStorageMethod: {
|
|
9213
|
+
serializedName: "rescoreStorageMethod",
|
|
9214
|
+
nullable: true,
|
|
9215
|
+
type: {
|
|
9216
|
+
name: "String",
|
|
9217
|
+
},
|
|
9218
|
+
},
|
|
9219
|
+
},
|
|
9220
|
+
},
|
|
9221
|
+
};
|
|
8921
9222
|
const ListIndexesResult = {
|
|
8922
9223
|
type: {
|
|
8923
9224
|
name: "Composite",
|
|
@@ -10402,6 +10703,30 @@ const DocumentExtractionSkill = {
|
|
|
10402
10703
|
} }),
|
|
10403
10704
|
},
|
|
10404
10705
|
};
|
|
10706
|
+
const DocumentIntelligenceLayoutSkill = {
|
|
10707
|
+
serializedName: "#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill",
|
|
10708
|
+
type: {
|
|
10709
|
+
name: "Composite",
|
|
10710
|
+
className: "DocumentIntelligenceLayoutSkill",
|
|
10711
|
+
uberParent: "SearchIndexerSkill",
|
|
10712
|
+
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
10713
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { outputMode: {
|
|
10714
|
+
defaultValue: "oneToMany",
|
|
10715
|
+
serializedName: "outputMode",
|
|
10716
|
+
nullable: true,
|
|
10717
|
+
type: {
|
|
10718
|
+
name: "String",
|
|
10719
|
+
},
|
|
10720
|
+
}, markdownHeaderDepth: {
|
|
10721
|
+
defaultValue: "h6",
|
|
10722
|
+
serializedName: "markdownHeaderDepth",
|
|
10723
|
+
nullable: true,
|
|
10724
|
+
type: {
|
|
10725
|
+
name: "String",
|
|
10726
|
+
},
|
|
10727
|
+
} }),
|
|
10728
|
+
},
|
|
10729
|
+
};
|
|
10405
10730
|
const WebApiSkill = {
|
|
10406
10731
|
serializedName: "#Microsoft.Skills.Custom.WebApiSkill",
|
|
10407
10732
|
type: {
|
|
@@ -10563,6 +10888,50 @@ const CognitiveServicesAccountKey = {
|
|
|
10563
10888
|
} }),
|
|
10564
10889
|
},
|
|
10565
10890
|
};
|
|
10891
|
+
const AIServicesAccountKey = {
|
|
10892
|
+
serializedName: "#Microsoft.Azure.Search.AIServicesByKey",
|
|
10893
|
+
type: {
|
|
10894
|
+
name: "Composite",
|
|
10895
|
+
className: "AIServicesAccountKey",
|
|
10896
|
+
uberParent: "CognitiveServicesAccount",
|
|
10897
|
+
polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
|
|
10898
|
+
modelProperties: Object.assign(Object.assign({}, CognitiveServicesAccount.type.modelProperties), { key: {
|
|
10899
|
+
serializedName: "key",
|
|
10900
|
+
required: true,
|
|
10901
|
+
type: {
|
|
10902
|
+
name: "String",
|
|
10903
|
+
},
|
|
10904
|
+
}, subdomainUrl: {
|
|
10905
|
+
serializedName: "subdomainUrl",
|
|
10906
|
+
required: true,
|
|
10907
|
+
type: {
|
|
10908
|
+
name: "String",
|
|
10909
|
+
},
|
|
10910
|
+
} }),
|
|
10911
|
+
},
|
|
10912
|
+
};
|
|
10913
|
+
const AIServicesAccountIdentity = {
|
|
10914
|
+
serializedName: "#Microsoft.Azure.Search.AIServicesByIdentity",
|
|
10915
|
+
type: {
|
|
10916
|
+
name: "Composite",
|
|
10917
|
+
className: "AIServicesAccountIdentity",
|
|
10918
|
+
uberParent: "CognitiveServicesAccount",
|
|
10919
|
+
polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
|
|
10920
|
+
modelProperties: Object.assign(Object.assign({}, CognitiveServicesAccount.type.modelProperties), { identity: {
|
|
10921
|
+
serializedName: "identity",
|
|
10922
|
+
type: {
|
|
10923
|
+
name: "Composite",
|
|
10924
|
+
className: "SearchIndexerDataIdentity",
|
|
10925
|
+
},
|
|
10926
|
+
}, subdomainUrl: {
|
|
10927
|
+
serializedName: "subdomainUrl",
|
|
10928
|
+
required: true,
|
|
10929
|
+
type: {
|
|
10930
|
+
name: "String",
|
|
10931
|
+
},
|
|
10932
|
+
} }),
|
|
10933
|
+
},
|
|
10934
|
+
};
|
|
10566
10935
|
const SearchIndexerKnowledgeStoreTableProjectionSelector = {
|
|
10567
10936
|
type: {
|
|
10568
10937
|
name: "Composite",
|
|
@@ -12322,12 +12691,15 @@ let discriminators = {
|
|
|
12322
12691
|
"SearchIndexerSkill.#Microsoft.Skills.Text.CustomEntityLookupSkill": CustomEntityLookupSkill,
|
|
12323
12692
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
12324
12693
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
12694
|
+
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill": DocumentIntelligenceLayoutSkill,
|
|
12325
12695
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
12326
12696
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
12327
12697
|
"SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
|
|
12328
12698
|
"SearchIndexerSkill.#Microsoft.Skills.Vision.VectorizeSkill": VisionVectorizeSkill,
|
|
12329
12699
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
12330
12700
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
12701
|
+
"CognitiveServicesAccount.#Microsoft.Azure.Search.AIServicesByKey": AIServicesAccountKey,
|
|
12702
|
+
"CognitiveServicesAccount.#Microsoft.Azure.Search.AIServicesByIdentity": AIServicesAccountIdentity,
|
|
12331
12703
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
12332
12704
|
"ScoringFunction.freshness": FreshnessScoringFunction,
|
|
12333
12705
|
"ScoringFunction.magnitude": MagnitudeScoringFunction,
|
|
@@ -12390,6 +12762,8 @@ let discriminators = {
|
|
|
12390
12762
|
|
|
12391
12763
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
12392
12764
|
__proto__: null,
|
|
12765
|
+
AIServicesAccountIdentity: AIServicesAccountIdentity,
|
|
12766
|
+
AIServicesAccountKey: AIServicesAccountKey,
|
|
12393
12767
|
AIServicesVisionParameters: AIServicesVisionParameters,
|
|
12394
12768
|
AIServicesVisionVectorizer: AIServicesVisionVectorizer,
|
|
12395
12769
|
AMLParameters: AMLParameters,
|
|
@@ -12428,6 +12802,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12428
12802
|
DistanceScoringFunction: DistanceScoringFunction,
|
|
12429
12803
|
DistanceScoringParameters: DistanceScoringParameters,
|
|
12430
12804
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
12805
|
+
DocumentIntelligenceLayoutSkill: DocumentIntelligenceLayoutSkill,
|
|
12431
12806
|
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
12432
12807
|
EdgeNGramTokenFilter: EdgeNGramTokenFilter,
|
|
12433
12808
|
EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
|
|
@@ -12496,6 +12871,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12496
12871
|
PatternReplaceTokenFilter: PatternReplaceTokenFilter,
|
|
12497
12872
|
PatternTokenizer: PatternTokenizer,
|
|
12498
12873
|
PhoneticTokenFilter: PhoneticTokenFilter,
|
|
12874
|
+
RescoringOptions: RescoringOptions,
|
|
12499
12875
|
ResourceCounter: ResourceCounter,
|
|
12500
12876
|
ScalarQuantizationCompression: ScalarQuantizationCompression,
|
|
12501
12877
|
ScalarQuantizationParameters: ScalarQuantizationParameters,
|
|
@@ -13944,7 +14320,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
13944
14320
|
const defaults = {
|
|
13945
14321
|
requestContentType: "application/json; charset=utf-8",
|
|
13946
14322
|
};
|
|
13947
|
-
const packageDetails = `azsdk-js-search-documents/12.2.0-beta.
|
|
14323
|
+
const packageDetails = `azsdk-js-search-documents/12.2.0-beta.2`;
|
|
13948
14324
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
13949
14325
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
13950
14326
|
: `${packageDetails}`;
|
|
@@ -14241,6 +14617,7 @@ class SearchIndexClient {
|
|
|
14241
14617
|
* Retrieves a list of names of existing indexes in the service.
|
|
14242
14618
|
* @param options - Options to the list index operation.
|
|
14243
14619
|
*/
|
|
14620
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
14244
14621
|
listIndexesNames(options = {}) {
|
|
14245
14622
|
const iter = this.listIndexesNamesAll(options);
|
|
14246
14623
|
return {
|
|
@@ -14280,6 +14657,7 @@ class SearchIndexClient {
|
|
|
14280
14657
|
* Retrieves a list of names of existing SynonymMaps in the service.
|
|
14281
14658
|
* @param options - Options to the list SynonymMaps operation.
|
|
14282
14659
|
*/
|
|
14660
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
14283
14661
|
async listSynonymMapsNames(options = {}) {
|
|
14284
14662
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
|
|
14285
14663
|
try {
|
|
@@ -14324,7 +14702,9 @@ class SearchIndexClient {
|
|
|
14324
14702
|
* @param synonymMapName - The name of the SynonymMap.
|
|
14325
14703
|
* @param options - Additional optional arguments.
|
|
14326
14704
|
*/
|
|
14327
|
-
async getSynonymMap(synonymMapName,
|
|
14705
|
+
async getSynonymMap(synonymMapName,
|
|
14706
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
14707
|
+
options = {}) {
|
|
14328
14708
|
const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options);
|
|
14329
14709
|
try {
|
|
14330
14710
|
const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);
|
|
@@ -14749,6 +15129,7 @@ class SearchIndexerClient {
|
|
|
14749
15129
|
* Retrieves a list of names of existing indexers in the service.
|
|
14750
15130
|
* @param options - Options to the list indexers operation.
|
|
14751
15131
|
*/
|
|
15132
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
14752
15133
|
async listIndexersNames(options = {}) {
|
|
14753
15134
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
|
|
14754
15135
|
try {
|
|
@@ -14791,7 +15172,9 @@ class SearchIndexerClient {
|
|
|
14791
15172
|
* Retrieves a list of names of existing data sources in the service.
|
|
14792
15173
|
* @param options - Options to the list indexers operation.
|
|
14793
15174
|
*/
|
|
14794
|
-
async listDataSourceConnectionsNames(
|
|
15175
|
+
async listDataSourceConnectionsNames(
|
|
15176
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
15177
|
+
options = {}) {
|
|
14795
15178
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
|
|
14796
15179
|
try {
|
|
14797
15180
|
const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
@@ -14833,6 +15216,7 @@ class SearchIndexerClient {
|
|
|
14833
15216
|
* Retrieves a list of names of existing Skillsets in the service.
|
|
14834
15217
|
* @param options - Options to the list Skillsets operation.
|
|
14835
15218
|
*/
|
|
15219
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
14836
15220
|
async listSkillsetsNames(options = {}) {
|
|
14837
15221
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
|
|
14838
15222
|
try {
|