@azure/search-documents 12.0.0-beta.3 → 12.0.0
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/README.md +4 -4
- package/dist/index.js +853 -2103
- 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/models/index.js +40 -224
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +96 -210
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +38 -80
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +5 -9
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js +28 -2
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +165 -164
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +86 -464
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/models/parameters.js +1 -51
- package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/service/operations/dataSources.js +1 -4
- package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
- package/dist-esm/src/generated/service/operations/index.js +0 -1
- package/dist-esm/src/generated/service/operations/index.js.map +1 -1
- package/dist-esm/src/generated/service/operations/indexers.js +1 -29
- package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operations/skillsets.js +1 -30
- package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/index.js +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +29 -4
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/index.js +2 -3
- 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/searchClient.js +34 -31
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +11 -174
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +3 -49
- 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 +49 -80
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +12 -11
- package/types/search-documents.d.ts +772 -2514
- package/dist-esm/src/generated/service/operations/aliases.js +0 -160
- package/dist-esm/src/generated/service/operations/aliases.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -13,10 +13,7 @@ var EventEmitter = require('events');
|
|
|
13
13
|
var util = require('util');
|
|
14
14
|
var fs = require('fs');
|
|
15
15
|
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
function _interopNamespace(e) {
|
|
19
|
-
if (e && e.__esModule) return e;
|
|
16
|
+
function _interopNamespaceDefault(e) {
|
|
20
17
|
var n = Object.create(null);
|
|
21
18
|
if (e) {
|
|
22
19
|
Object.keys(e).forEach(function (k) {
|
|
@@ -29,14 +26,13 @@ function _interopNamespace(e) {
|
|
|
29
26
|
}
|
|
30
27
|
});
|
|
31
28
|
}
|
|
32
|
-
n
|
|
29
|
+
n.default = e;
|
|
33
30
|
return Object.freeze(n);
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
var coreHttpCompat__namespace = /*#__PURE__*/
|
|
37
|
-
var coreClient__namespace = /*#__PURE__*/
|
|
38
|
-
var
|
|
39
|
-
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
33
|
+
var coreHttpCompat__namespace = /*#__PURE__*/_interopNamespaceDefault(coreHttpCompat);
|
|
34
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
35
|
+
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
40
36
|
|
|
41
37
|
/*
|
|
42
38
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -122,7 +118,7 @@ const SearchDocumentsResult = {
|
|
|
122
118
|
element: {
|
|
123
119
|
type: {
|
|
124
120
|
name: "Composite",
|
|
125
|
-
className: "
|
|
121
|
+
className: "QueryAnswerResult"
|
|
126
122
|
}
|
|
127
123
|
}
|
|
128
124
|
}
|
|
@@ -134,20 +130,6 @@ const SearchDocumentsResult = {
|
|
|
134
130
|
className: "SearchRequest"
|
|
135
131
|
}
|
|
136
132
|
},
|
|
137
|
-
semanticPartialResponseReason: {
|
|
138
|
-
serializedName: "@search\\.semanticPartialResponseReason",
|
|
139
|
-
readOnly: true,
|
|
140
|
-
type: {
|
|
141
|
-
name: "String"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
semanticPartialResponseType: {
|
|
145
|
-
serializedName: "@search\\.semanticPartialResponseType",
|
|
146
|
-
readOnly: true,
|
|
147
|
-
type: {
|
|
148
|
-
name: "String"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
133
|
results: {
|
|
152
134
|
serializedName: "value",
|
|
153
135
|
required: true,
|
|
@@ -168,6 +150,20 @@ const SearchDocumentsResult = {
|
|
|
168
150
|
type: {
|
|
169
151
|
name: "String"
|
|
170
152
|
}
|
|
153
|
+
},
|
|
154
|
+
semanticPartialResponseReason: {
|
|
155
|
+
serializedName: "@search\\.semanticPartialResponseReason",
|
|
156
|
+
readOnly: true,
|
|
157
|
+
type: {
|
|
158
|
+
name: "String"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
semanticPartialResponseType: {
|
|
162
|
+
serializedName: "@search\\.semanticPartialResponseType",
|
|
163
|
+
readOnly: true,
|
|
164
|
+
type: {
|
|
165
|
+
name: "String"
|
|
166
|
+
}
|
|
171
167
|
}
|
|
172
168
|
}
|
|
173
169
|
}
|
|
@@ -188,10 +184,10 @@ const FacetResult = {
|
|
|
188
184
|
}
|
|
189
185
|
}
|
|
190
186
|
};
|
|
191
|
-
const
|
|
187
|
+
const QueryAnswerResult = {
|
|
192
188
|
type: {
|
|
193
189
|
name: "Composite",
|
|
194
|
-
className: "
|
|
190
|
+
className: "QueryAnswerResult",
|
|
195
191
|
additionalProperties: { type: { name: "Object" } },
|
|
196
192
|
modelProperties: {
|
|
197
193
|
score: {
|
|
@@ -324,34 +320,6 @@ const SearchRequest = {
|
|
|
324
320
|
name: "String"
|
|
325
321
|
}
|
|
326
322
|
},
|
|
327
|
-
semanticConfiguration: {
|
|
328
|
-
serializedName: "semanticConfiguration",
|
|
329
|
-
type: {
|
|
330
|
-
name: "String"
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
semanticErrorHandling: {
|
|
334
|
-
serializedName: "semanticErrorHandling",
|
|
335
|
-
type: {
|
|
336
|
-
name: "String"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
semanticMaxWaitInMilliseconds: {
|
|
340
|
-
constraints: {
|
|
341
|
-
InclusiveMinimum: 700
|
|
342
|
-
},
|
|
343
|
-
serializedName: "semanticMaxWaitInMilliseconds",
|
|
344
|
-
nullable: true,
|
|
345
|
-
type: {
|
|
346
|
-
name: "Number"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
debug: {
|
|
350
|
-
serializedName: "debug",
|
|
351
|
-
type: {
|
|
352
|
-
name: "String"
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
323
|
searchText: {
|
|
356
324
|
serializedName: "search",
|
|
357
325
|
type: {
|
|
@@ -371,83 +339,94 @@ const SearchRequest = {
|
|
|
371
339
|
allowedValues: ["any", "all"]
|
|
372
340
|
}
|
|
373
341
|
},
|
|
374
|
-
|
|
375
|
-
serializedName: "
|
|
342
|
+
select: {
|
|
343
|
+
serializedName: "select",
|
|
376
344
|
type: {
|
|
377
345
|
name: "String"
|
|
378
346
|
}
|
|
379
347
|
},
|
|
380
|
-
|
|
381
|
-
serializedName: "
|
|
348
|
+
skip: {
|
|
349
|
+
serializedName: "skip",
|
|
382
350
|
type: {
|
|
383
|
-
name: "
|
|
351
|
+
name: "Number"
|
|
384
352
|
}
|
|
385
353
|
},
|
|
386
|
-
|
|
387
|
-
serializedName: "
|
|
354
|
+
top: {
|
|
355
|
+
serializedName: "top",
|
|
388
356
|
type: {
|
|
389
|
-
name: "
|
|
357
|
+
name: "Number"
|
|
390
358
|
}
|
|
391
359
|
},
|
|
392
|
-
|
|
393
|
-
serializedName: "
|
|
360
|
+
semanticConfigurationName: {
|
|
361
|
+
serializedName: "semanticConfiguration",
|
|
394
362
|
type: {
|
|
395
363
|
name: "String"
|
|
396
364
|
}
|
|
397
365
|
},
|
|
398
|
-
|
|
399
|
-
serializedName: "
|
|
366
|
+
semanticErrorHandling: {
|
|
367
|
+
serializedName: "semanticErrorHandling",
|
|
400
368
|
type: {
|
|
401
|
-
name: "
|
|
369
|
+
name: "String"
|
|
402
370
|
}
|
|
403
371
|
},
|
|
404
|
-
|
|
405
|
-
|
|
372
|
+
semanticMaxWaitInMilliseconds: {
|
|
373
|
+
constraints: {
|
|
374
|
+
InclusiveMinimum: 700
|
|
375
|
+
},
|
|
376
|
+
serializedName: "semanticMaxWaitInMilliseconds",
|
|
377
|
+
nullable: true,
|
|
406
378
|
type: {
|
|
407
379
|
name: "Number"
|
|
408
380
|
}
|
|
409
381
|
},
|
|
410
|
-
|
|
411
|
-
serializedName: "
|
|
382
|
+
answers: {
|
|
383
|
+
serializedName: "answers",
|
|
412
384
|
type: {
|
|
413
385
|
name: "String"
|
|
414
386
|
}
|
|
415
387
|
},
|
|
416
|
-
|
|
417
|
-
serializedName: "
|
|
388
|
+
captions: {
|
|
389
|
+
serializedName: "captions",
|
|
418
390
|
type: {
|
|
419
391
|
name: "String"
|
|
420
392
|
}
|
|
421
393
|
},
|
|
422
|
-
|
|
423
|
-
serializedName: "
|
|
394
|
+
vectorQueries: {
|
|
395
|
+
serializedName: "vectorQueries",
|
|
424
396
|
type: {
|
|
425
397
|
name: "Sequence",
|
|
426
398
|
element: {
|
|
427
399
|
type: {
|
|
428
400
|
name: "Composite",
|
|
429
|
-
className: "
|
|
401
|
+
className: "VectorQuery"
|
|
430
402
|
}
|
|
431
403
|
}
|
|
432
404
|
}
|
|
405
|
+
},
|
|
406
|
+
vectorFilterMode: {
|
|
407
|
+
serializedName: "vectorFilterMode",
|
|
408
|
+
type: {
|
|
409
|
+
name: "String"
|
|
410
|
+
}
|
|
433
411
|
}
|
|
434
412
|
}
|
|
435
413
|
}
|
|
436
414
|
};
|
|
437
|
-
const
|
|
415
|
+
const VectorQuery = {
|
|
438
416
|
type: {
|
|
439
417
|
name: "Composite",
|
|
440
|
-
className: "
|
|
418
|
+
className: "VectorQuery",
|
|
419
|
+
uberParent: "VectorQuery",
|
|
420
|
+
polymorphicDiscriminator: {
|
|
421
|
+
serializedName: "kind",
|
|
422
|
+
clientName: "kind"
|
|
423
|
+
},
|
|
441
424
|
modelProperties: {
|
|
442
|
-
|
|
443
|
-
serializedName: "
|
|
425
|
+
kind: {
|
|
426
|
+
serializedName: "kind",
|
|
427
|
+
required: true,
|
|
444
428
|
type: {
|
|
445
|
-
name: "
|
|
446
|
-
element: {
|
|
447
|
-
type: {
|
|
448
|
-
name: "Number"
|
|
449
|
-
}
|
|
450
|
-
}
|
|
429
|
+
name: "String"
|
|
451
430
|
}
|
|
452
431
|
},
|
|
453
432
|
kNearestNeighborsCount: {
|
|
@@ -461,6 +440,12 @@ const Vector = {
|
|
|
461
440
|
type: {
|
|
462
441
|
name: "String"
|
|
463
442
|
}
|
|
443
|
+
},
|
|
444
|
+
exhaustive: {
|
|
445
|
+
serializedName: "exhaustive",
|
|
446
|
+
type: {
|
|
447
|
+
name: "Boolean"
|
|
448
|
+
}
|
|
464
449
|
}
|
|
465
450
|
}
|
|
466
451
|
}
|
|
@@ -479,7 +464,7 @@ const SearchResult = {
|
|
|
479
464
|
name: "Number"
|
|
480
465
|
}
|
|
481
466
|
},
|
|
482
|
-
|
|
467
|
+
_rerankerScore: {
|
|
483
468
|
serializedName: "@search\\.rerankerScore",
|
|
484
469
|
readOnly: true,
|
|
485
470
|
nullable: true,
|
|
@@ -497,7 +482,7 @@ const SearchResult = {
|
|
|
497
482
|
}
|
|
498
483
|
}
|
|
499
484
|
},
|
|
500
|
-
|
|
485
|
+
_captions: {
|
|
501
486
|
serializedName: "@search\\.captions",
|
|
502
487
|
readOnly: true,
|
|
503
488
|
nullable: true,
|
|
@@ -506,21 +491,7 @@ const SearchResult = {
|
|
|
506
491
|
element: {
|
|
507
492
|
type: {
|
|
508
493
|
name: "Composite",
|
|
509
|
-
className: "
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
documentDebugInfo: {
|
|
515
|
-
serializedName: "@search\\.documentDebugInfo",
|
|
516
|
-
readOnly: true,
|
|
517
|
-
nullable: true,
|
|
518
|
-
type: {
|
|
519
|
-
name: "Sequence",
|
|
520
|
-
element: {
|
|
521
|
-
type: {
|
|
522
|
-
name: "Composite",
|
|
523
|
-
className: "DocumentDebugInfo"
|
|
494
|
+
className: "QueryCaptionResult"
|
|
524
495
|
}
|
|
525
496
|
}
|
|
526
497
|
}
|
|
@@ -528,10 +499,10 @@ const SearchResult = {
|
|
|
528
499
|
}
|
|
529
500
|
}
|
|
530
501
|
};
|
|
531
|
-
const
|
|
502
|
+
const QueryCaptionResult = {
|
|
532
503
|
type: {
|
|
533
504
|
name: "Composite",
|
|
534
|
-
className: "
|
|
505
|
+
className: "QueryCaptionResult",
|
|
535
506
|
additionalProperties: { type: { name: "Object" } },
|
|
536
507
|
modelProperties: {
|
|
537
508
|
text: {
|
|
@@ -552,120 +523,6 @@ const CaptionResult = {
|
|
|
552
523
|
}
|
|
553
524
|
}
|
|
554
525
|
};
|
|
555
|
-
const DocumentDebugInfo = {
|
|
556
|
-
type: {
|
|
557
|
-
name: "Composite",
|
|
558
|
-
className: "DocumentDebugInfo",
|
|
559
|
-
modelProperties: {
|
|
560
|
-
semantic: {
|
|
561
|
-
serializedName: "semantic",
|
|
562
|
-
type: {
|
|
563
|
-
name: "Composite",
|
|
564
|
-
className: "SemanticDebugInfo"
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
const SemanticDebugInfo = {
|
|
571
|
-
type: {
|
|
572
|
-
name: "Composite",
|
|
573
|
-
className: "SemanticDebugInfo",
|
|
574
|
-
modelProperties: {
|
|
575
|
-
titleField: {
|
|
576
|
-
serializedName: "titleField",
|
|
577
|
-
type: {
|
|
578
|
-
name: "Composite",
|
|
579
|
-
className: "QueryResultDocumentSemanticField"
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
contentFields: {
|
|
583
|
-
serializedName: "contentFields",
|
|
584
|
-
readOnly: true,
|
|
585
|
-
type: {
|
|
586
|
-
name: "Sequence",
|
|
587
|
-
element: {
|
|
588
|
-
type: {
|
|
589
|
-
name: "Composite",
|
|
590
|
-
className: "QueryResultDocumentSemanticField"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
keywordFields: {
|
|
596
|
-
serializedName: "keywordFields",
|
|
597
|
-
readOnly: true,
|
|
598
|
-
type: {
|
|
599
|
-
name: "Sequence",
|
|
600
|
-
element: {
|
|
601
|
-
type: {
|
|
602
|
-
name: "Composite",
|
|
603
|
-
className: "QueryResultDocumentSemanticField"
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
rerankerInput: {
|
|
609
|
-
serializedName: "rerankerInput",
|
|
610
|
-
type: {
|
|
611
|
-
name: "Composite",
|
|
612
|
-
className: "QueryResultDocumentRerankerInput"
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
const QueryResultDocumentSemanticField = {
|
|
619
|
-
type: {
|
|
620
|
-
name: "Composite",
|
|
621
|
-
className: "QueryResultDocumentSemanticField",
|
|
622
|
-
modelProperties: {
|
|
623
|
-
name: {
|
|
624
|
-
serializedName: "name",
|
|
625
|
-
readOnly: true,
|
|
626
|
-
type: {
|
|
627
|
-
name: "String"
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
state: {
|
|
631
|
-
serializedName: "state",
|
|
632
|
-
readOnly: true,
|
|
633
|
-
type: {
|
|
634
|
-
name: "String"
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
|
-
const QueryResultDocumentRerankerInput = {
|
|
641
|
-
type: {
|
|
642
|
-
name: "Composite",
|
|
643
|
-
className: "QueryResultDocumentRerankerInput",
|
|
644
|
-
modelProperties: {
|
|
645
|
-
title: {
|
|
646
|
-
serializedName: "title",
|
|
647
|
-
readOnly: true,
|
|
648
|
-
type: {
|
|
649
|
-
name: "String"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
content: {
|
|
653
|
-
serializedName: "content",
|
|
654
|
-
readOnly: true,
|
|
655
|
-
type: {
|
|
656
|
-
name: "String"
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
keywords: {
|
|
660
|
-
serializedName: "keywords",
|
|
661
|
-
readOnly: true,
|
|
662
|
-
type: {
|
|
663
|
-
name: "String"
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
526
|
const SuggestDocumentsResult = {
|
|
670
527
|
type: {
|
|
671
528
|
name: "Composite",
|
|
@@ -1011,31 +868,54 @@ const AutocompleteRequest = {
|
|
|
1011
868
|
}
|
|
1012
869
|
}
|
|
1013
870
|
};
|
|
871
|
+
const VectorizedQuery = {
|
|
872
|
+
serializedName: "vector",
|
|
873
|
+
type: {
|
|
874
|
+
name: "Composite",
|
|
875
|
+
className: "VectorizedQuery",
|
|
876
|
+
uberParent: "VectorQuery",
|
|
877
|
+
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
878
|
+
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { vector: {
|
|
879
|
+
serializedName: "vector",
|
|
880
|
+
required: true,
|
|
881
|
+
type: {
|
|
882
|
+
name: "Sequence",
|
|
883
|
+
element: {
|
|
884
|
+
type: {
|
|
885
|
+
name: "Number"
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
} })
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
let discriminators$1 = {
|
|
893
|
+
VectorQuery: VectorQuery,
|
|
894
|
+
"VectorQuery.vector": VectorizedQuery
|
|
895
|
+
};
|
|
1014
896
|
|
|
1015
897
|
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
1016
898
|
__proto__: null,
|
|
1017
|
-
|
|
1018
|
-
|
|
899
|
+
AutocompleteItem: AutocompleteItem,
|
|
900
|
+
AutocompleteRequest: AutocompleteRequest,
|
|
901
|
+
AutocompleteResult: AutocompleteResult,
|
|
1019
902
|
FacetResult: FacetResult,
|
|
1020
|
-
|
|
903
|
+
IndexAction: IndexAction,
|
|
904
|
+
IndexBatch: IndexBatch,
|
|
905
|
+
IndexDocumentsResult: IndexDocumentsResult,
|
|
906
|
+
IndexingResult: IndexingResult,
|
|
907
|
+
QueryAnswerResult: QueryAnswerResult,
|
|
908
|
+
QueryCaptionResult: QueryCaptionResult,
|
|
909
|
+
SearchDocumentsResult: SearchDocumentsResult,
|
|
910
|
+
SearchError: SearchError$1,
|
|
1021
911
|
SearchRequest: SearchRequest,
|
|
1022
|
-
Vector: Vector,
|
|
1023
912
|
SearchResult: SearchResult,
|
|
1024
|
-
CaptionResult: CaptionResult,
|
|
1025
|
-
DocumentDebugInfo: DocumentDebugInfo,
|
|
1026
|
-
SemanticDebugInfo: SemanticDebugInfo,
|
|
1027
|
-
QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
|
|
1028
|
-
QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
|
|
1029
913
|
SuggestDocumentsResult: SuggestDocumentsResult,
|
|
1030
|
-
SuggestResult: SuggestResult,
|
|
1031
914
|
SuggestRequest: SuggestRequest,
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
AutocompleteResult: AutocompleteResult,
|
|
1037
|
-
AutocompleteItem: AutocompleteItem,
|
|
1038
|
-
AutocompleteRequest: AutocompleteRequest
|
|
915
|
+
SuggestResult: SuggestResult,
|
|
916
|
+
VectorQuery: VectorQuery,
|
|
917
|
+
VectorizedQuery: VectorizedQuery,
|
|
918
|
+
discriminators: discriminators$1
|
|
1039
919
|
});
|
|
1040
920
|
|
|
1041
921
|
/*
|
|
@@ -1220,49 +1100,10 @@ const scoringProfile = {
|
|
|
1220
1100
|
}
|
|
1221
1101
|
}
|
|
1222
1102
|
};
|
|
1223
|
-
const
|
|
1224
|
-
parameterPath: ["options", "searchOptions", "
|
|
1103
|
+
const searchFields = {
|
|
1104
|
+
parameterPath: ["options", "searchOptions", "searchFields"],
|
|
1225
1105
|
mapper: {
|
|
1226
|
-
serializedName: "
|
|
1227
|
-
type: {
|
|
1228
|
-
name: "String"
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
const semanticErrorHandling = {
|
|
1233
|
-
parameterPath: ["options", "searchOptions", "semanticErrorHandling"],
|
|
1234
|
-
mapper: {
|
|
1235
|
-
serializedName: "semanticErrorHandling",
|
|
1236
|
-
type: {
|
|
1237
|
-
name: "String"
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
|
-
const semanticMaxWaitInMilliseconds = {
|
|
1242
|
-
parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"],
|
|
1243
|
-
mapper: {
|
|
1244
|
-
constraints: {
|
|
1245
|
-
InclusiveMinimum: 700
|
|
1246
|
-
},
|
|
1247
|
-
serializedName: "semanticMaxWaitInMilliseconds",
|
|
1248
|
-
type: {
|
|
1249
|
-
name: "Number"
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
const debug = {
|
|
1254
|
-
parameterPath: ["options", "searchOptions", "debug"],
|
|
1255
|
-
mapper: {
|
|
1256
|
-
serializedName: "debug",
|
|
1257
|
-
type: {
|
|
1258
|
-
name: "String"
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
};
|
|
1262
|
-
const searchFields = {
|
|
1263
|
-
parameterPath: ["options", "searchOptions", "searchFields"],
|
|
1264
|
-
mapper: {
|
|
1265
|
-
serializedName: "searchFields",
|
|
1106
|
+
serializedName: "searchFields",
|
|
1266
1107
|
type: {
|
|
1267
1108
|
name: "Sequence",
|
|
1268
1109
|
element: {
|
|
@@ -1274,33 +1115,6 @@ const searchFields = {
|
|
|
1274
1115
|
},
|
|
1275
1116
|
collectionFormat: "CSV"
|
|
1276
1117
|
};
|
|
1277
|
-
const queryLanguage = {
|
|
1278
|
-
parameterPath: ["options", "searchOptions", "queryLanguage"],
|
|
1279
|
-
mapper: {
|
|
1280
|
-
serializedName: "queryLanguage",
|
|
1281
|
-
type: {
|
|
1282
|
-
name: "String"
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
|
-
const speller = {
|
|
1287
|
-
parameterPath: ["options", "searchOptions", "speller"],
|
|
1288
|
-
mapper: {
|
|
1289
|
-
serializedName: "speller",
|
|
1290
|
-
type: {
|
|
1291
|
-
name: "String"
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
|
-
const answers = {
|
|
1296
|
-
parameterPath: ["options", "searchOptions", "answers"],
|
|
1297
|
-
mapper: {
|
|
1298
|
-
serializedName: "answers",
|
|
1299
|
-
type: {
|
|
1300
|
-
name: "String"
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
1118
|
const searchMode = {
|
|
1305
1119
|
parameterPath: ["options", "searchOptions", "searchMode"],
|
|
1306
1120
|
mapper: {
|
|
@@ -1363,29 +1177,53 @@ const top = {
|
|
|
1363
1177
|
}
|
|
1364
1178
|
}
|
|
1365
1179
|
};
|
|
1366
|
-
const
|
|
1367
|
-
parameterPath: ["options", "searchOptions", "
|
|
1180
|
+
const semanticConfiguration = {
|
|
1181
|
+
parameterPath: ["options", "searchOptions", "semanticConfiguration"],
|
|
1368
1182
|
mapper: {
|
|
1369
|
-
serializedName: "
|
|
1183
|
+
serializedName: "semanticConfiguration",
|
|
1370
1184
|
type: {
|
|
1371
1185
|
name: "String"
|
|
1372
1186
|
}
|
|
1373
1187
|
}
|
|
1374
1188
|
};
|
|
1375
|
-
const
|
|
1376
|
-
parameterPath: ["options", "searchOptions", "
|
|
1189
|
+
const semanticErrorHandling = {
|
|
1190
|
+
parameterPath: ["options", "searchOptions", "semanticErrorHandling"],
|
|
1377
1191
|
mapper: {
|
|
1378
|
-
serializedName: "
|
|
1192
|
+
serializedName: "semanticErrorHandling",
|
|
1379
1193
|
type: {
|
|
1380
|
-
name: "
|
|
1381
|
-
element: {
|
|
1382
|
-
type: {
|
|
1383
|
-
name: "String"
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1194
|
+
name: "String"
|
|
1386
1195
|
}
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
const semanticMaxWaitInMilliseconds = {
|
|
1199
|
+
parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"],
|
|
1200
|
+
mapper: {
|
|
1201
|
+
constraints: {
|
|
1202
|
+
InclusiveMinimum: 700
|
|
1203
|
+
},
|
|
1204
|
+
serializedName: "semanticMaxWaitInMilliseconds",
|
|
1205
|
+
type: {
|
|
1206
|
+
name: "Number"
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
const answers = {
|
|
1211
|
+
parameterPath: ["options", "searchOptions", "answers"],
|
|
1212
|
+
mapper: {
|
|
1213
|
+
serializedName: "answers",
|
|
1214
|
+
type: {
|
|
1215
|
+
name: "String"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
const captions = {
|
|
1220
|
+
parameterPath: ["options", "searchOptions", "captions"],
|
|
1221
|
+
mapper: {
|
|
1222
|
+
serializedName: "captions",
|
|
1223
|
+
type: {
|
|
1224
|
+
name: "String"
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1389
1227
|
};
|
|
1390
1228
|
const contentType$1 = {
|
|
1391
1229
|
parameterPath: ["options", "contentType"],
|
|
@@ -1682,7 +1520,7 @@ class DocumentsImpl {
|
|
|
1682
1520
|
* @param options The options parameters.
|
|
1683
1521
|
*/
|
|
1684
1522
|
get(key, options) {
|
|
1685
|
-
return this.client.sendOperationRequest({ key, options }, getOperationSpec$
|
|
1523
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
|
|
1686
1524
|
}
|
|
1687
1525
|
/**
|
|
1688
1526
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -1731,7 +1569,7 @@ class DocumentsImpl {
|
|
|
1731
1569
|
}
|
|
1732
1570
|
}
|
|
1733
1571
|
// Operation Specifications
|
|
1734
|
-
const serializer$
|
|
1572
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
|
|
1735
1573
|
const countOperationSpec = {
|
|
1736
1574
|
path: "/docs/$count",
|
|
1737
1575
|
httpMethod: "GET",
|
|
@@ -1746,7 +1584,7 @@ const countOperationSpec = {
|
|
|
1746
1584
|
queryParameters: [apiVersion$1],
|
|
1747
1585
|
urlParameters: [endpoint$1, indexName$1],
|
|
1748
1586
|
headerParameters: [accept$1],
|
|
1749
|
-
serializer: serializer$
|
|
1587
|
+
serializer: serializer$6
|
|
1750
1588
|
};
|
|
1751
1589
|
const searchGetOperationSpec = {
|
|
1752
1590
|
path: "/docs",
|
|
@@ -1773,26 +1611,22 @@ const searchGetOperationSpec = {
|
|
|
1773
1611
|
queryType,
|
|
1774
1612
|
scoringParameters,
|
|
1775
1613
|
scoringProfile,
|
|
1776
|
-
semanticConfiguration,
|
|
1777
|
-
semanticErrorHandling,
|
|
1778
|
-
semanticMaxWaitInMilliseconds,
|
|
1779
|
-
debug,
|
|
1780
1614
|
searchFields,
|
|
1781
|
-
queryLanguage,
|
|
1782
|
-
speller,
|
|
1783
|
-
answers,
|
|
1784
1615
|
searchMode,
|
|
1785
1616
|
scoringStatistics,
|
|
1786
1617
|
sessionId,
|
|
1787
1618
|
select$1,
|
|
1788
1619
|
skip,
|
|
1789
1620
|
top,
|
|
1790
|
-
|
|
1791
|
-
|
|
1621
|
+
semanticConfiguration,
|
|
1622
|
+
semanticErrorHandling,
|
|
1623
|
+
semanticMaxWaitInMilliseconds,
|
|
1624
|
+
answers,
|
|
1625
|
+
captions
|
|
1792
1626
|
],
|
|
1793
1627
|
urlParameters: [endpoint$1, indexName$1],
|
|
1794
1628
|
headerParameters: [accept$1],
|
|
1795
|
-
serializer: serializer$
|
|
1629
|
+
serializer: serializer$6
|
|
1796
1630
|
};
|
|
1797
1631
|
const searchPostOperationSpec = {
|
|
1798
1632
|
path: "/docs/search.post.search",
|
|
@@ -1810,9 +1644,9 @@ const searchPostOperationSpec = {
|
|
|
1810
1644
|
urlParameters: [endpoint$1, indexName$1],
|
|
1811
1645
|
headerParameters: [accept$1, contentType$1],
|
|
1812
1646
|
mediaType: "json",
|
|
1813
|
-
serializer: serializer$
|
|
1647
|
+
serializer: serializer$6
|
|
1814
1648
|
};
|
|
1815
|
-
const getOperationSpec$
|
|
1649
|
+
const getOperationSpec$5 = {
|
|
1816
1650
|
path: "/docs('{key}')",
|
|
1817
1651
|
httpMethod: "GET",
|
|
1818
1652
|
responses: {
|
|
@@ -1828,7 +1662,7 @@ const getOperationSpec$6 = {
|
|
|
1828
1662
|
queryParameters: [apiVersion$1, selectedFields],
|
|
1829
1663
|
urlParameters: [endpoint$1, indexName$1, key],
|
|
1830
1664
|
headerParameters: [accept$1],
|
|
1831
|
-
serializer: serializer$
|
|
1665
|
+
serializer: serializer$6
|
|
1832
1666
|
};
|
|
1833
1667
|
const suggestGetOperationSpec = {
|
|
1834
1668
|
path: "/docs/search.suggest",
|
|
@@ -1857,7 +1691,7 @@ const suggestGetOperationSpec = {
|
|
|
1857
1691
|
],
|
|
1858
1692
|
urlParameters: [endpoint$1, indexName$1],
|
|
1859
1693
|
headerParameters: [accept$1],
|
|
1860
|
-
serializer: serializer$
|
|
1694
|
+
serializer: serializer$6
|
|
1861
1695
|
};
|
|
1862
1696
|
const suggestPostOperationSpec = {
|
|
1863
1697
|
path: "/docs/search.post.suggest",
|
|
@@ -1875,7 +1709,7 @@ const suggestPostOperationSpec = {
|
|
|
1875
1709
|
urlParameters: [endpoint$1, indexName$1],
|
|
1876
1710
|
headerParameters: [accept$1, contentType$1],
|
|
1877
1711
|
mediaType: "json",
|
|
1878
|
-
serializer: serializer$
|
|
1712
|
+
serializer: serializer$6
|
|
1879
1713
|
};
|
|
1880
1714
|
const indexOperationSpec = {
|
|
1881
1715
|
path: "/docs/search.index",
|
|
@@ -1896,7 +1730,7 @@ const indexOperationSpec = {
|
|
|
1896
1730
|
urlParameters: [endpoint$1, indexName$1],
|
|
1897
1731
|
headerParameters: [accept$1, contentType$1],
|
|
1898
1732
|
mediaType: "json",
|
|
1899
|
-
serializer: serializer$
|
|
1733
|
+
serializer: serializer$6
|
|
1900
1734
|
};
|
|
1901
1735
|
const autocompleteGetOperationSpec = {
|
|
1902
1736
|
path: "/docs/search.autocomplete",
|
|
@@ -1924,7 +1758,7 @@ const autocompleteGetOperationSpec = {
|
|
|
1924
1758
|
],
|
|
1925
1759
|
urlParameters: [endpoint$1, indexName$1],
|
|
1926
1760
|
headerParameters: [accept$1],
|
|
1927
|
-
serializer: serializer$
|
|
1761
|
+
serializer: serializer$6
|
|
1928
1762
|
};
|
|
1929
1763
|
const autocompletePostOperationSpec = {
|
|
1930
1764
|
path: "/docs/search.post.autocomplete",
|
|
@@ -1942,7 +1776,7 @@ const autocompletePostOperationSpec = {
|
|
|
1942
1776
|
urlParameters: [endpoint$1, indexName$1],
|
|
1943
1777
|
headerParameters: [accept$1, contentType$1],
|
|
1944
1778
|
mediaType: "json",
|
|
1945
|
-
serializer: serializer$
|
|
1779
|
+
serializer: serializer$6
|
|
1946
1780
|
};
|
|
1947
1781
|
|
|
1948
1782
|
/*
|
|
@@ -1953,7 +1787,7 @@ const autocompletePostOperationSpec = {
|
|
|
1953
1787
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1954
1788
|
*/
|
|
1955
1789
|
/** @internal */
|
|
1956
|
-
|
|
1790
|
+
let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.ExtendedServiceClient {
|
|
1957
1791
|
/**
|
|
1958
1792
|
* Initializes a new instance of the SearchClient class.
|
|
1959
1793
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1979,21 +1813,47 @@ class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
|
|
|
1979
1813
|
const defaults = {
|
|
1980
1814
|
requestContentType: "application/json; charset=utf-8"
|
|
1981
1815
|
};
|
|
1982
|
-
const packageDetails = `azsdk-js-search-documents/12.0.0
|
|
1816
|
+
const packageDetails = `azsdk-js-search-documents/12.0.0`;
|
|
1983
1817
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1984
1818
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1985
1819
|
: `${packageDetails}`;
|
|
1986
1820
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1987
1821
|
userAgentPrefix
|
|
1988
|
-
},
|
|
1822
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}/indexes('{indexName}')" });
|
|
1989
1823
|
super(optionsWithDefaults);
|
|
1990
1824
|
// Parameter assignments
|
|
1991
1825
|
this.endpoint = endpoint;
|
|
1992
1826
|
this.indexName = indexName;
|
|
1993
1827
|
this.apiVersion = apiVersion;
|
|
1994
1828
|
this.documents = new DocumentsImpl(this);
|
|
1829
|
+
this.addCustomApiVersionPolicy(apiVersion);
|
|
1830
|
+
}
|
|
1831
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1832
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
1833
|
+
if (!apiVersion) {
|
|
1834
|
+
return;
|
|
1835
|
+
}
|
|
1836
|
+
const apiVersionPolicy = {
|
|
1837
|
+
name: "CustomApiVersionPolicy",
|
|
1838
|
+
async sendRequest(request, next) {
|
|
1839
|
+
const param = request.url.split("?");
|
|
1840
|
+
if (param.length > 1) {
|
|
1841
|
+
const newParams = param[1].split("&").map((item) => {
|
|
1842
|
+
if (item.indexOf("api-version") > -1) {
|
|
1843
|
+
return "api-version=" + apiVersion;
|
|
1844
|
+
}
|
|
1845
|
+
else {
|
|
1846
|
+
return item;
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
1850
|
+
}
|
|
1851
|
+
return next(request);
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1995
1855
|
}
|
|
1996
|
-
}
|
|
1856
|
+
};
|
|
1997
1857
|
|
|
1998
1858
|
// Copyright (c) Microsoft Corporation.
|
|
1999
1859
|
// Licensed under the MIT license.
|
|
@@ -2016,12 +1876,14 @@ function createSearchApiKeyCredentialPolicy(credential) {
|
|
|
2016
1876
|
}
|
|
2017
1877
|
|
|
2018
1878
|
// Copyright (c) Microsoft Corporation.
|
|
1879
|
+
// Licensed under the MIT license.
|
|
2019
1880
|
/**
|
|
2020
1881
|
* The `@azure/logger` configuration for this package.
|
|
2021
1882
|
*/
|
|
2022
1883
|
const logger = logger$1.createClientLogger("search");
|
|
2023
1884
|
|
|
2024
1885
|
// Copyright (c) Microsoft Corporation.
|
|
1886
|
+
// Licensed under the MIT license.
|
|
2025
1887
|
/**
|
|
2026
1888
|
* Creates a tracing client using the global tracer.
|
|
2027
1889
|
* @internal
|
|
@@ -2061,6 +1923,7 @@ class GeographyPoint {
|
|
|
2061
1923
|
}
|
|
2062
1924
|
|
|
2063
1925
|
// Copyright (c) Microsoft Corporation.
|
|
1926
|
+
// Licensed under the MIT license.
|
|
2064
1927
|
const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
|
|
2065
1928
|
const GeoJSONPointTypeName = "Point";
|
|
2066
1929
|
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
@@ -2340,7 +2203,7 @@ function isComplexField(field) {
|
|
|
2340
2203
|
* Defines values for TokenizerName.
|
|
2341
2204
|
* @readonly
|
|
2342
2205
|
*/
|
|
2343
|
-
|
|
2206
|
+
var KnownTokenizerNames;
|
|
2344
2207
|
(function (KnownTokenizerNames) {
|
|
2345
2208
|
/**
|
|
2346
2209
|
* Grammar-based tokenizer that is suitable for processing most European-language documents. See
|
|
@@ -2408,12 +2271,12 @@ exports.KnownTokenizerNames = void 0;
|
|
|
2408
2271
|
* http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html
|
|
2409
2272
|
*/
|
|
2410
2273
|
KnownTokenizerNames["Whitespace"] = "whitespace";
|
|
2411
|
-
})(
|
|
2274
|
+
})(KnownTokenizerNames || (KnownTokenizerNames = {}));
|
|
2412
2275
|
/**
|
|
2413
2276
|
* Defines values for TokenFilterName.
|
|
2414
2277
|
* @readonly
|
|
2415
2278
|
*/
|
|
2416
|
-
|
|
2279
|
+
var KnownTokenFilterNames;
|
|
2417
2280
|
(function (KnownTokenFilterNames) {
|
|
2418
2281
|
/**
|
|
2419
2282
|
* A token filter that applies the Arabic normalizer to normalize the orthography. See
|
|
@@ -2591,19 +2454,19 @@ exports.KnownTokenFilterNames = void 0;
|
|
|
2591
2454
|
* Splits words into subwords and performs optional transformations on subword groups.
|
|
2592
2455
|
*/
|
|
2593
2456
|
KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
|
|
2594
|
-
})(
|
|
2457
|
+
})(KnownTokenFilterNames || (KnownTokenFilterNames = {}));
|
|
2595
2458
|
/**
|
|
2596
2459
|
* Defines values for CharFilterName.
|
|
2597
2460
|
* @readonly
|
|
2598
2461
|
*/
|
|
2599
|
-
|
|
2462
|
+
var KnownCharFilterNames;
|
|
2600
2463
|
(function (KnownCharFilterNames) {
|
|
2601
2464
|
/**
|
|
2602
2465
|
* A character filter that attempts to strip out HTML constructs. See
|
|
2603
2466
|
* https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html
|
|
2604
2467
|
*/
|
|
2605
2468
|
KnownCharFilterNames["HtmlStrip"] = "html_strip";
|
|
2606
|
-
})(
|
|
2469
|
+
})(KnownCharFilterNames || (KnownCharFilterNames = {}));
|
|
2607
2470
|
/**
|
|
2608
2471
|
* Defines values for AnalyzerName.
|
|
2609
2472
|
* See https://docs.microsoft.com/rest/api/searchservice/Language-support
|
|
@@ -2986,6 +2849,7 @@ exports.KnownAnalyzerNames = void 0;
|
|
|
2986
2849
|
// END manually modified generated interfaces
|
|
2987
2850
|
|
|
2988
2851
|
// Copyright (c) Microsoft Corporation.
|
|
2852
|
+
// Licensed under the MIT license.
|
|
2989
2853
|
function convertSkillsToPublic(skills) {
|
|
2990
2854
|
if (!skills) {
|
|
2991
2855
|
return skills;
|
|
@@ -3047,9 +2911,6 @@ function convertSkillsToPublic(skills) {
|
|
|
3047
2911
|
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
3048
2912
|
result.push(skill);
|
|
3049
2913
|
break;
|
|
3050
|
-
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
3051
|
-
result.push(skill);
|
|
3052
|
-
break;
|
|
3053
2914
|
}
|
|
3054
2915
|
}
|
|
3055
2916
|
return result;
|
|
@@ -3121,7 +2982,12 @@ function convertAnalyzersToPublic(analyzers) {
|
|
|
3121
2982
|
: undefined }));
|
|
3122
2983
|
break;
|
|
3123
2984
|
case "#Microsoft.Azure.Search.CustomAnalyzer":
|
|
3124
|
-
|
|
2985
|
+
{
|
|
2986
|
+
const customAnalyzer = analyzer;
|
|
2987
|
+
const { name, tokenizerName, tokenFilters } = customAnalyzer;
|
|
2988
|
+
const publicAnalyzer = Object.assign(Object.assign({}, customAnalyzer), { name: name, tokenizerName, tokenFilters: tokenFilters });
|
|
2989
|
+
result.push(publicAnalyzer);
|
|
2990
|
+
}
|
|
3125
2991
|
break;
|
|
3126
2992
|
}
|
|
3127
2993
|
}
|
|
@@ -3142,20 +3008,11 @@ function convertFieldsToPublic(fields) {
|
|
|
3142
3008
|
}
|
|
3143
3009
|
else {
|
|
3144
3010
|
const type = field.type;
|
|
3145
|
-
const analyzerName = field.analyzer;
|
|
3146
|
-
const searchAnalyzerName = field.searchAnalyzer;
|
|
3147
|
-
const indexAnalyzerName = field.indexAnalyzer;
|
|
3148
3011
|
const synonymMapNames = field.synonymMaps;
|
|
3149
|
-
const
|
|
3150
|
-
const { retrievable } = field, restField = tslib.__rest(field, ["retrievable"]);
|
|
3012
|
+
const { retrievable, analyzer, searchAnalyzer, indexAnalyzer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer"]);
|
|
3151
3013
|
const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
|
|
3152
3014
|
const result = Object.assign(Object.assign({}, restField), { type,
|
|
3153
|
-
hidden,
|
|
3154
|
-
analyzerName,
|
|
3155
|
-
searchAnalyzerName,
|
|
3156
|
-
indexAnalyzerName,
|
|
3157
|
-
synonymMapNames,
|
|
3158
|
-
normalizerName });
|
|
3015
|
+
hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, synonymMapNames });
|
|
3159
3016
|
return result;
|
|
3160
3017
|
}
|
|
3161
3018
|
});
|
|
@@ -3175,7 +3032,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
3175
3032
|
const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
|
|
3176
3033
|
return Object.assign(Object.assign({}, restField), { retrievable,
|
|
3177
3034
|
// modify API defaults to use less storage for simple types
|
|
3178
|
-
searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames
|
|
3035
|
+
searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames });
|
|
3179
3036
|
}
|
|
3180
3037
|
});
|
|
3181
3038
|
}
|
|
@@ -3195,15 +3052,16 @@ function convertTokenizersToGenerated(tokenizers) {
|
|
|
3195
3052
|
return result;
|
|
3196
3053
|
}
|
|
3197
3054
|
function convertTokenizersToPublic(tokenizers) {
|
|
3055
|
+
var _a;
|
|
3198
3056
|
if (!tokenizers) {
|
|
3199
3057
|
return tokenizers;
|
|
3200
3058
|
}
|
|
3201
3059
|
const result = [];
|
|
3202
3060
|
for (const tokenizer of tokenizers) {
|
|
3203
3061
|
if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") {
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3062
|
+
const patternTokenizer = tokenizer;
|
|
3063
|
+
const flags = (_a = patternTokenizer.flags) === null || _a === void 0 ? void 0 : _a.split("|");
|
|
3064
|
+
result.push(Object.assign(Object.assign({}, tokenizer), { flags }));
|
|
3207
3065
|
}
|
|
3208
3066
|
else {
|
|
3209
3067
|
result.push(tokenizer);
|
|
@@ -3236,7 +3094,6 @@ function convertEncryptionKeyToPublic(encryptionKey) {
|
|
|
3236
3094
|
keyName: encryptionKey.keyName,
|
|
3237
3095
|
keyVersion: encryptionKey.keyVersion,
|
|
3238
3096
|
vaultUrl: encryptionKey.vaultUri,
|
|
3239
|
-
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
|
|
3240
3097
|
};
|
|
3241
3098
|
if (encryptionKey.accessCredentials) {
|
|
3242
3099
|
result.applicationId = encryptionKey.accessCredentials.applicationId;
|
|
@@ -3252,7 +3109,6 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
|
|
|
3252
3109
|
keyName: encryptionKey.keyName,
|
|
3253
3110
|
keyVersion: encryptionKey.keyVersion,
|
|
3254
3111
|
vaultUri: encryptionKey.vaultUrl,
|
|
3255
|
-
identity: encryptionKey.identity,
|
|
3256
3112
|
};
|
|
3257
3113
|
if (encryptionKey.applicationId) {
|
|
3258
3114
|
result.accessCredentials = {
|
|
@@ -3274,25 +3130,41 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
3274
3130
|
tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),
|
|
3275
3131
|
tokenFilters: generatedIndex.tokenFilters,
|
|
3276
3132
|
charFilters: generatedIndex.charFilters,
|
|
3277
|
-
normalizers: generatedIndex.normalizers,
|
|
3278
3133
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
3279
3134
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
3280
3135
|
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
3281
|
-
|
|
3282
|
-
vectorSearch: generatedIndex.vectorSearch,
|
|
3136
|
+
semanticSearch: generatedIndex.semanticSearch,
|
|
3137
|
+
vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch),
|
|
3283
3138
|
};
|
|
3284
3139
|
}
|
|
3140
|
+
function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
|
|
3141
|
+
var _a;
|
|
3142
|
+
if (!generatedAlgorithmConfiguration) {
|
|
3143
|
+
return generatedAlgorithmConfiguration;
|
|
3144
|
+
}
|
|
3145
|
+
if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) {
|
|
3146
|
+
const algorithmConfiguration = generatedAlgorithmConfiguration;
|
|
3147
|
+
const metric = (_a = algorithmConfiguration.parameters) === null || _a === void 0 ? void 0 : _a.metric;
|
|
3148
|
+
return Object.assign(Object.assign({}, algorithmConfiguration), { parameters: Object.assign(Object.assign({}, algorithmConfiguration.parameters), { metric }) });
|
|
3149
|
+
}
|
|
3150
|
+
throw Error("Unsupported algorithm configuration");
|
|
3151
|
+
}
|
|
3152
|
+
function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
|
|
3153
|
+
var _a;
|
|
3154
|
+
if (!vectorSearch) {
|
|
3155
|
+
return vectorSearch;
|
|
3156
|
+
}
|
|
3157
|
+
return Object.assign(Object.assign({}, vectorSearch), { algorithms: (_a = vectorSearch.algorithms) === null || _a === void 0 ? void 0 : _a.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration) });
|
|
3158
|
+
}
|
|
3285
3159
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
3286
3160
|
const returnValues = results.map((result) => {
|
|
3287
|
-
const { _score, _highlights, rerankerScore, captions
|
|
3288
|
-
const doc = Object.assign({}, restProps);
|
|
3161
|
+
const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions"]);
|
|
3289
3162
|
const obj = {
|
|
3290
|
-
score
|
|
3291
|
-
highlights
|
|
3163
|
+
score,
|
|
3164
|
+
highlights,
|
|
3292
3165
|
rerankerScore,
|
|
3293
3166
|
captions,
|
|
3294
|
-
document:
|
|
3295
|
-
documentDebugInfo,
|
|
3167
|
+
document: restProps, // todo: make this change in beta
|
|
3296
3168
|
};
|
|
3297
3169
|
return obj;
|
|
3298
3170
|
});
|
|
@@ -3301,10 +3173,9 @@ function generatedSearchResultToPublicSearchResult(results) {
|
|
|
3301
3173
|
function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDocumentsResult) {
|
|
3302
3174
|
const results = searchDocumentsResult.results.map((element) => {
|
|
3303
3175
|
const { _text } = element, restProps = tslib.__rest(element, ["_text"]);
|
|
3304
|
-
const doc = Object.assign({}, restProps);
|
|
3305
3176
|
const obj = {
|
|
3306
3177
|
text: _text,
|
|
3307
|
-
document:
|
|
3178
|
+
document: restProps, // todo: make this change in beta
|
|
3308
3179
|
};
|
|
3309
3180
|
return obj;
|
|
3310
3181
|
});
|
|
@@ -3319,15 +3190,8 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
3319
3190
|
return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
|
|
3320
3191
|
}
|
|
3321
3192
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
description: generatedSkillset.description,
|
|
3325
|
-
skills: convertSkillsToPublic(generatedSkillset.skills),
|
|
3326
|
-
cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(generatedSkillset.cognitiveServicesAccount),
|
|
3327
|
-
knowledgeStore: convertKnowledgeStoreToPublic(generatedSkillset.knowledgeStore),
|
|
3328
|
-
etag: generatedSkillset.etag,
|
|
3329
|
-
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey),
|
|
3330
|
-
};
|
|
3193
|
+
const { skills, cognitiveServicesAccount, knowledgeStore, encryptionKey } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "knowledgeStore", "encryptionKey"]);
|
|
3194
|
+
return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), encryptionKey: convertEncryptionKeyToPublic(encryptionKey) });
|
|
3331
3195
|
}
|
|
3332
3196
|
function publicSkillsetToGeneratedSkillset(skillset) {
|
|
3333
3197
|
return {
|
|
@@ -3367,12 +3231,11 @@ function publicSearchIndexerToGeneratedSearchIndexer(indexer) {
|
|
|
3367
3231
|
return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey) });
|
|
3368
3232
|
}
|
|
3369
3233
|
function generatedSearchIndexerToPublicSearchIndexer(indexer) {
|
|
3370
|
-
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
const
|
|
3374
|
-
|
|
3375
|
-
return publicRequest;
|
|
3234
|
+
var _a, _b, _c, _d;
|
|
3235
|
+
const { parsingMode, dataToExtract, imageAction, pdfTextRotationAlgorithm, executionEnvironment, } = (_b = (_a = indexer.parameters) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : {};
|
|
3236
|
+
const configuration = ((_c = indexer.parameters) === null || _c === void 0 ? void 0 : _c.configuration) && Object.assign(Object.assign({}, (_d = indexer.parameters) === null || _d === void 0 ? void 0 : _d.configuration), { parsingMode: parsingMode, dataToExtract: dataToExtract, imageAction: imageAction, pdfTextRotationAlgorithm: pdfTextRotationAlgorithm, executionEnvironment: executionEnvironment });
|
|
3237
|
+
const parameters = Object.assign(Object.assign({}, indexer.parameters), { configuration });
|
|
3238
|
+
return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey) });
|
|
3376
3239
|
}
|
|
3377
3240
|
function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
3378
3241
|
return {
|
|
@@ -3383,7 +3246,6 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
|
3383
3246
|
connectionString: dataSource.connectionString,
|
|
3384
3247
|
},
|
|
3385
3248
|
container: dataSource.container,
|
|
3386
|
-
identity: dataSource.identity,
|
|
3387
3249
|
etag: dataSource.etag,
|
|
3388
3250
|
dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
|
|
3389
3251
|
dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
|
|
@@ -3397,24 +3259,12 @@ function generatedDataSourceToPublicDataSource(dataSource) {
|
|
|
3397
3259
|
type: dataSource.type,
|
|
3398
3260
|
connectionString: dataSource.credentials.connectionString,
|
|
3399
3261
|
container: dataSource.container,
|
|
3400
|
-
identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity),
|
|
3401
3262
|
etag: dataSource.etag,
|
|
3402
3263
|
dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
|
|
3403
3264
|
dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
|
|
3404
3265
|
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey),
|
|
3405
3266
|
};
|
|
3406
3267
|
}
|
|
3407
|
-
function convertSearchIndexerDataIdentityToPublic(searchIndexerDataIdentity) {
|
|
3408
|
-
if (!searchIndexerDataIdentity) {
|
|
3409
|
-
return searchIndexerDataIdentity;
|
|
3410
|
-
}
|
|
3411
|
-
if (searchIndexerDataIdentity.odatatype === "#Microsoft.Azure.Search.DataNoneIdentity") {
|
|
3412
|
-
return searchIndexerDataIdentity;
|
|
3413
|
-
}
|
|
3414
|
-
else {
|
|
3415
|
-
return searchIndexerDataIdentity;
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
3268
|
function convertDataChangeDetectionPolicyToPublic(dataChangeDetectionPolicy) {
|
|
3419
3269
|
if (!dataChangeDetectionPolicy) {
|
|
3420
3270
|
return dataChangeDetectionPolicy;
|
|
@@ -3433,14 +3283,6 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
|
|
|
3433
3283
|
}
|
|
3434
3284
|
return dataDeletionDetectionPolicy;
|
|
3435
3285
|
}
|
|
3436
|
-
function convertVectorToPublic(vector) {
|
|
3437
|
-
var _a;
|
|
3438
|
-
if (!vector) {
|
|
3439
|
-
return vector;
|
|
3440
|
-
}
|
|
3441
|
-
const fields = (_a = vector.fields) === null || _a === void 0 ? void 0 : _a.split(",");
|
|
3442
|
-
return Object.assign(Object.assign({}, vector), { fields });
|
|
3443
|
-
}
|
|
3444
3286
|
function getRandomIntegerInclusive(min, max) {
|
|
3445
3287
|
// Make sure inputs are integers.
|
|
3446
3288
|
min = Math.ceil(min);
|
|
@@ -3459,18 +3301,9 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3459
3301
|
function delay(timeInMs) {
|
|
3460
3302
|
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3461
3303
|
}
|
|
3462
|
-
const defaultServiceVersion = "2023-
|
|
3304
|
+
const defaultServiceVersion = "2023-11-01";
|
|
3463
3305
|
function convertKnowledgeStoreToPublic(knowledgeStore) {
|
|
3464
|
-
|
|
3465
|
-
return knowledgeStore;
|
|
3466
|
-
}
|
|
3467
|
-
return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
|
|
3468
|
-
}
|
|
3469
|
-
function convertSearchIndexerCacheToPublic(cache) {
|
|
3470
|
-
if (!cache) {
|
|
3471
|
-
return cache;
|
|
3472
|
-
}
|
|
3473
|
-
return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
|
|
3306
|
+
return knowledgeStore;
|
|
3474
3307
|
}
|
|
3475
3308
|
|
|
3476
3309
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -3495,6 +3328,7 @@ exports.KnownSearchAudience = void 0;
|
|
|
3495
3328
|
})(exports.KnownSearchAudience || (exports.KnownSearchAudience = {}));
|
|
3496
3329
|
|
|
3497
3330
|
// Copyright (c) Microsoft Corporation.
|
|
3331
|
+
// Licensed under the MIT license.
|
|
3498
3332
|
/**
|
|
3499
3333
|
* Class used to perform operations against a search index,
|
|
3500
3334
|
* including querying documents in the index as well as
|
|
@@ -3668,16 +3502,19 @@ class SearchClient {
|
|
|
3668
3502
|
}
|
|
3669
3503
|
}
|
|
3670
3504
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
3671
|
-
const { searchFields,
|
|
3672
|
-
const
|
|
3505
|
+
const { searchFields, select, orderBy, includeTotalCount, vectorSearchOptions } = options, restOptions = tslib.__rest(options, ["searchFields", "select", "orderBy", "includeTotalCount", "vectorSearchOptions"]);
|
|
3506
|
+
const semanticSearchOptions = restOptions
|
|
3507
|
+
.semanticSearchOptions;
|
|
3508
|
+
delete restOptions.semanticSearchOptions;
|
|
3509
|
+
const _a = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { configurationName, errorMode, answers, captions } = _a, restSemanticOptions = tslib.__rest(_a, ["configurationName", "errorMode", "answers", "captions"]);
|
|
3510
|
+
const _b = vectorSearchOptions !== null && vectorSearchOptions !== void 0 ? vectorSearchOptions : {}, { queries, filterMode } = _b, restVectorOptions = tslib.__rest(_b, ["queries", "filterMode"]);
|
|
3511
|
+
const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), 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.convertCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, vectorFilterMode: filterMode });
|
|
3673
3512
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
|
|
3674
3513
|
try {
|
|
3675
3514
|
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
|
|
3676
|
-
const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason, semanticPartialResponseType } = result, restResult = tslib.__rest(result, ["results", "nextLink", "nextPageParameters", "semanticPartialResponseReason", "semanticPartialResponseType"]);
|
|
3515
|
+
const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason: semanticErrorReason, semanticPartialResponseType: semanticSearchResultsType } = result, restResult = tslib.__rest(result, ["results", "nextLink", "nextPageParameters", "semanticPartialResponseReason", "semanticPartialResponseType"]);
|
|
3677
3516
|
const modifiedResults = generatedSearchResultToPublicSearchResult(results);
|
|
3678
|
-
const converted = Object.assign(Object.assign({}, restResult), { results: modifiedResults,
|
|
3679
|
-
? generatedSearchRequestToPublicSearchRequest(resultNextPageParameters)
|
|
3680
|
-
: resultNextPageParameters) });
|
|
3517
|
+
const converted = Object.assign(Object.assign({}, restResult), { results: modifiedResults, semanticErrorReason: semanticErrorReason, semanticSearchResultsType: semanticSearchResultsType, continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters) });
|
|
3681
3518
|
return deserialize(converted);
|
|
3682
3519
|
}
|
|
3683
3520
|
catch (e) {
|
|
@@ -3713,16 +3550,11 @@ class SearchClient {
|
|
|
3713
3550
|
try {
|
|
3714
3551
|
for (var _d = true, _e = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
|
|
3715
3552
|
continuationToken: firstPage.continuationToken,
|
|
3716
|
-
})), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3553
|
+
})), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3717
3554
|
_c = _f.value;
|
|
3718
3555
|
_d = false;
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
3722
|
-
}
|
|
3723
|
-
finally {
|
|
3724
|
-
_d = true;
|
|
3725
|
-
}
|
|
3556
|
+
const page = _c;
|
|
3557
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
3726
3558
|
}
|
|
3727
3559
|
}
|
|
3728
3560
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -4049,7 +3881,7 @@ class SearchClient {
|
|
|
4049
3881
|
}
|
|
4050
3882
|
return select;
|
|
4051
3883
|
}
|
|
4052
|
-
|
|
3884
|
+
convertVectorQueryFields(fields) {
|
|
4053
3885
|
if (fields) {
|
|
4054
3886
|
return fields.join(",");
|
|
4055
3887
|
}
|
|
@@ -4061,27 +3893,18 @@ class SearchClient {
|
|
|
4061
3893
|
}
|
|
4062
3894
|
return searchFields;
|
|
4063
3895
|
}
|
|
4064
|
-
convertSemanticFields(semanticFields) {
|
|
4065
|
-
if (semanticFields) {
|
|
4066
|
-
return semanticFields.join(",");
|
|
4067
|
-
}
|
|
4068
|
-
return semanticFields;
|
|
4069
|
-
}
|
|
4070
3896
|
convertOrderBy(orderBy) {
|
|
4071
3897
|
if (orderBy) {
|
|
4072
3898
|
return orderBy.join(",");
|
|
4073
3899
|
}
|
|
4074
3900
|
return orderBy;
|
|
4075
3901
|
}
|
|
4076
|
-
|
|
4077
|
-
if (!answers
|
|
3902
|
+
convertQueryAnswers(answers) {
|
|
3903
|
+
if (!answers) {
|
|
4078
3904
|
return answers;
|
|
4079
3905
|
}
|
|
4080
|
-
if (answers.answers === "none") {
|
|
4081
|
-
return answers.answers;
|
|
4082
|
-
}
|
|
4083
3906
|
const config = [];
|
|
4084
|
-
const {
|
|
3907
|
+
const { answerType: output, count, threshold } = answers;
|
|
4085
3908
|
if (count) {
|
|
4086
3909
|
config.push(`count-${count}`);
|
|
4087
3910
|
}
|
|
@@ -4093,15 +3916,30 @@ class SearchClient {
|
|
|
4093
3916
|
}
|
|
4094
3917
|
return output;
|
|
4095
3918
|
}
|
|
4096
|
-
|
|
4097
|
-
if (!
|
|
4098
|
-
return
|
|
3919
|
+
convertCaptions(captions) {
|
|
3920
|
+
if (!captions) {
|
|
3921
|
+
return captions;
|
|
3922
|
+
}
|
|
3923
|
+
const config = [];
|
|
3924
|
+
const { captionType: output, highlight } = captions;
|
|
3925
|
+
if (highlight !== undefined) {
|
|
3926
|
+
config.push(`highlight-${highlight}`);
|
|
3927
|
+
}
|
|
3928
|
+
if (config.length) {
|
|
3929
|
+
return output + `|${config.join(",")}`;
|
|
3930
|
+
}
|
|
3931
|
+
return output;
|
|
3932
|
+
}
|
|
3933
|
+
convertVectorQuery(vectorQuery) {
|
|
3934
|
+
if (!vectorQuery) {
|
|
3935
|
+
return vectorQuery;
|
|
4099
3936
|
}
|
|
4100
|
-
return Object.assign(Object.assign({},
|
|
3937
|
+
return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
|
|
4101
3938
|
}
|
|
4102
3939
|
}
|
|
4103
3940
|
|
|
4104
3941
|
// Copyright (c) Microsoft Corporation.
|
|
3942
|
+
// Licensed under the MIT license.
|
|
4105
3943
|
/**
|
|
4106
3944
|
* Default Batch Size
|
|
4107
3945
|
*/
|
|
@@ -4135,7 +3973,7 @@ class SearchIndexingBufferedSender {
|
|
|
4135
3973
|
/**
|
|
4136
3974
|
* Event emitter/publisher used in the Buffered Sender
|
|
4137
3975
|
*/
|
|
4138
|
-
this.emitter = new
|
|
3976
|
+
this.emitter = new EventEmitter();
|
|
4139
3977
|
this.client = client;
|
|
4140
3978
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
4141
3979
|
// General Configuration properties
|
|
@@ -4424,13 +4262,6 @@ const SearchIndexerDataSource = {
|
|
|
4424
4262
|
className: "SearchIndexerDataContainer"
|
|
4425
4263
|
}
|
|
4426
4264
|
},
|
|
4427
|
-
identity: {
|
|
4428
|
-
serializedName: "identity",
|
|
4429
|
-
type: {
|
|
4430
|
-
name: "Composite",
|
|
4431
|
-
className: "SearchIndexerDataIdentity"
|
|
4432
|
-
}
|
|
4433
|
-
},
|
|
4434
4265
|
dataChangeDetectionPolicy: {
|
|
4435
4266
|
serializedName: "dataChangeDetectionPolicy",
|
|
4436
4267
|
type: {
|
|
@@ -4496,26 +4327,6 @@ const SearchIndexerDataContainer = {
|
|
|
4496
4327
|
}
|
|
4497
4328
|
}
|
|
4498
4329
|
};
|
|
4499
|
-
const SearchIndexerDataIdentity = {
|
|
4500
|
-
type: {
|
|
4501
|
-
name: "Composite",
|
|
4502
|
-
className: "SearchIndexerDataIdentity",
|
|
4503
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
4504
|
-
polymorphicDiscriminator: {
|
|
4505
|
-
serializedName: "@odata\\.type",
|
|
4506
|
-
clientName: "odatatype"
|
|
4507
|
-
},
|
|
4508
|
-
modelProperties: {
|
|
4509
|
-
odatatype: {
|
|
4510
|
-
serializedName: "@odata\\.type",
|
|
4511
|
-
required: true,
|
|
4512
|
-
type: {
|
|
4513
|
-
name: "String"
|
|
4514
|
-
}
|
|
4515
|
-
}
|
|
4516
|
-
}
|
|
4517
|
-
}
|
|
4518
|
-
};
|
|
4519
4330
|
const DataChangeDetectionPolicy = {
|
|
4520
4331
|
type: {
|
|
4521
4332
|
name: "Composite",
|
|
@@ -4588,13 +4399,6 @@ const SearchResourceEncryptionKey = {
|
|
|
4588
4399
|
name: "Composite",
|
|
4589
4400
|
className: "AzureActiveDirectoryApplicationCredentials"
|
|
4590
4401
|
}
|
|
4591
|
-
},
|
|
4592
|
-
identity: {
|
|
4593
|
-
serializedName: "identity",
|
|
4594
|
-
type: {
|
|
4595
|
-
name: "Composite",
|
|
4596
|
-
className: "SearchIndexerDataIdentity"
|
|
4597
|
-
}
|
|
4598
4402
|
}
|
|
4599
4403
|
}
|
|
4600
4404
|
}
|
|
@@ -4678,36 +4482,6 @@ const ListDataSourcesResult = {
|
|
|
4678
4482
|
}
|
|
4679
4483
|
}
|
|
4680
4484
|
};
|
|
4681
|
-
const DocumentKeysOrIds = {
|
|
4682
|
-
type: {
|
|
4683
|
-
name: "Composite",
|
|
4684
|
-
className: "DocumentKeysOrIds",
|
|
4685
|
-
modelProperties: {
|
|
4686
|
-
documentKeys: {
|
|
4687
|
-
serializedName: "documentKeys",
|
|
4688
|
-
type: {
|
|
4689
|
-
name: "Sequence",
|
|
4690
|
-
element: {
|
|
4691
|
-
type: {
|
|
4692
|
-
name: "String"
|
|
4693
|
-
}
|
|
4694
|
-
}
|
|
4695
|
-
}
|
|
4696
|
-
},
|
|
4697
|
-
datasourceDocumentIds: {
|
|
4698
|
-
serializedName: "datasourceDocumentIds",
|
|
4699
|
-
type: {
|
|
4700
|
-
name: "Sequence",
|
|
4701
|
-
element: {
|
|
4702
|
-
type: {
|
|
4703
|
-
name: "String"
|
|
4704
|
-
}
|
|
4705
|
-
}
|
|
4706
|
-
}
|
|
4707
|
-
}
|
|
4708
|
-
}
|
|
4709
|
-
}
|
|
4710
|
-
};
|
|
4711
4485
|
const SearchIndexer = {
|
|
4712
4486
|
type: {
|
|
4713
4487
|
name: "Composite",
|
|
@@ -4804,13 +4578,6 @@ const SearchIndexer = {
|
|
|
4804
4578
|
name: "Composite",
|
|
4805
4579
|
className: "SearchResourceEncryptionKey"
|
|
4806
4580
|
}
|
|
4807
|
-
},
|
|
4808
|
-
cache: {
|
|
4809
|
-
serializedName: "cache",
|
|
4810
|
-
type: {
|
|
4811
|
-
name: "Composite",
|
|
4812
|
-
className: "SearchIndexerCache"
|
|
4813
|
-
}
|
|
4814
4581
|
}
|
|
4815
4582
|
}
|
|
4816
4583
|
}
|
|
@@ -5034,7 +4801,6 @@ const FieldMappingFunction = {
|
|
|
5034
4801
|
},
|
|
5035
4802
|
parameters: {
|
|
5036
4803
|
serializedName: "parameters",
|
|
5037
|
-
nullable: true,
|
|
5038
4804
|
type: {
|
|
5039
4805
|
name: "Dictionary",
|
|
5040
4806
|
value: { type: { name: "any" } }
|
|
@@ -5043,34 +4809,6 @@ const FieldMappingFunction = {
|
|
|
5043
4809
|
}
|
|
5044
4810
|
}
|
|
5045
4811
|
};
|
|
5046
|
-
const SearchIndexerCache = {
|
|
5047
|
-
type: {
|
|
5048
|
-
name: "Composite",
|
|
5049
|
-
className: "SearchIndexerCache",
|
|
5050
|
-
modelProperties: {
|
|
5051
|
-
storageConnectionString: {
|
|
5052
|
-
serializedName: "storageConnectionString",
|
|
5053
|
-
type: {
|
|
5054
|
-
name: "String"
|
|
5055
|
-
}
|
|
5056
|
-
},
|
|
5057
|
-
enableReprocessing: {
|
|
5058
|
-
serializedName: "enableReprocessing",
|
|
5059
|
-
nullable: true,
|
|
5060
|
-
type: {
|
|
5061
|
-
name: "Boolean"
|
|
5062
|
-
}
|
|
5063
|
-
},
|
|
5064
|
-
identity: {
|
|
5065
|
-
serializedName: "identity",
|
|
5066
|
-
type: {
|
|
5067
|
-
name: "Composite",
|
|
5068
|
-
className: "SearchIndexerDataIdentity"
|
|
5069
|
-
}
|
|
5070
|
-
}
|
|
5071
|
-
}
|
|
5072
|
-
}
|
|
5073
|
-
};
|
|
5074
4812
|
const ListIndexersResult = {
|
|
5075
4813
|
type: {
|
|
5076
4814
|
name: "Composite",
|
|
@@ -5152,22 +4890,8 @@ const IndexerExecutionResult = {
|
|
|
5152
4890
|
allowedValues: ["transientFailure", "success", "inProgress", "reset"]
|
|
5153
4891
|
}
|
|
5154
4892
|
},
|
|
5155
|
-
|
|
5156
|
-
serializedName: "
|
|
5157
|
-
readOnly: true,
|
|
5158
|
-
type: {
|
|
5159
|
-
name: "String"
|
|
5160
|
-
}
|
|
5161
|
-
},
|
|
5162
|
-
currentState: {
|
|
5163
|
-
serializedName: "currentState",
|
|
5164
|
-
type: {
|
|
5165
|
-
name: "Composite",
|
|
5166
|
-
className: "IndexerState"
|
|
5167
|
-
}
|
|
5168
|
-
},
|
|
5169
|
-
errorMessage: {
|
|
5170
|
-
serializedName: "errorMessage",
|
|
4893
|
+
errorMessage: {
|
|
4894
|
+
serializedName: "errorMessage",
|
|
5171
4895
|
readOnly: true,
|
|
5172
4896
|
type: {
|
|
5173
4897
|
name: "String"
|
|
@@ -5249,73 +4973,6 @@ const IndexerExecutionResult = {
|
|
|
5249
4973
|
}
|
|
5250
4974
|
}
|
|
5251
4975
|
};
|
|
5252
|
-
const IndexerState = {
|
|
5253
|
-
type: {
|
|
5254
|
-
name: "Composite",
|
|
5255
|
-
className: "IndexerState",
|
|
5256
|
-
modelProperties: {
|
|
5257
|
-
mode: {
|
|
5258
|
-
serializedName: "mode",
|
|
5259
|
-
readOnly: true,
|
|
5260
|
-
type: {
|
|
5261
|
-
name: "String"
|
|
5262
|
-
}
|
|
5263
|
-
},
|
|
5264
|
-
allDocumentsInitialChangeTrackingState: {
|
|
5265
|
-
serializedName: "allDocsInitialChangeTrackingState",
|
|
5266
|
-
readOnly: true,
|
|
5267
|
-
type: {
|
|
5268
|
-
name: "String"
|
|
5269
|
-
}
|
|
5270
|
-
},
|
|
5271
|
-
allDocumentsFinalChangeTrackingState: {
|
|
5272
|
-
serializedName: "allDocsFinalChangeTrackingState",
|
|
5273
|
-
readOnly: true,
|
|
5274
|
-
type: {
|
|
5275
|
-
name: "String"
|
|
5276
|
-
}
|
|
5277
|
-
},
|
|
5278
|
-
resetDocumentsInitialChangeTrackingState: {
|
|
5279
|
-
serializedName: "resetDocsInitialChangeTrackingState",
|
|
5280
|
-
readOnly: true,
|
|
5281
|
-
type: {
|
|
5282
|
-
name: "String"
|
|
5283
|
-
}
|
|
5284
|
-
},
|
|
5285
|
-
resetDocumentsFinalChangeTrackingState: {
|
|
5286
|
-
serializedName: "resetDocsFinalChangeTrackingState",
|
|
5287
|
-
readOnly: true,
|
|
5288
|
-
type: {
|
|
5289
|
-
name: "String"
|
|
5290
|
-
}
|
|
5291
|
-
},
|
|
5292
|
-
resetDocumentKeys: {
|
|
5293
|
-
serializedName: "resetDocumentKeys",
|
|
5294
|
-
readOnly: true,
|
|
5295
|
-
type: {
|
|
5296
|
-
name: "Sequence",
|
|
5297
|
-
element: {
|
|
5298
|
-
type: {
|
|
5299
|
-
name: "String"
|
|
5300
|
-
}
|
|
5301
|
-
}
|
|
5302
|
-
}
|
|
5303
|
-
},
|
|
5304
|
-
resetDatasourceDocumentIds: {
|
|
5305
|
-
serializedName: "resetDatasourceDocumentIds",
|
|
5306
|
-
readOnly: true,
|
|
5307
|
-
type: {
|
|
5308
|
-
name: "Sequence",
|
|
5309
|
-
element: {
|
|
5310
|
-
type: {
|
|
5311
|
-
name: "String"
|
|
5312
|
-
}
|
|
5313
|
-
}
|
|
5314
|
-
}
|
|
5315
|
-
}
|
|
5316
|
-
}
|
|
5317
|
-
}
|
|
5318
|
-
};
|
|
5319
4976
|
const SearchIndexerError = {
|
|
5320
4977
|
type: {
|
|
5321
4978
|
name: "Composite",
|
|
@@ -5676,13 +5333,6 @@ const SearchIndexerKnowledgeStore = {
|
|
|
5676
5333
|
}
|
|
5677
5334
|
}
|
|
5678
5335
|
}
|
|
5679
|
-
},
|
|
5680
|
-
identity: {
|
|
5681
|
-
serializedName: "identity",
|
|
5682
|
-
type: {
|
|
5683
|
-
name: "Composite",
|
|
5684
|
-
className: "SearchIndexerDataIdentity"
|
|
5685
|
-
}
|
|
5686
5336
|
}
|
|
5687
5337
|
}
|
|
5688
5338
|
}
|
|
@@ -5797,25 +5447,6 @@ const ListSkillsetsResult = {
|
|
|
5797
5447
|
}
|
|
5798
5448
|
}
|
|
5799
5449
|
};
|
|
5800
|
-
const SkillNames = {
|
|
5801
|
-
type: {
|
|
5802
|
-
name: "Composite",
|
|
5803
|
-
className: "SkillNames",
|
|
5804
|
-
modelProperties: {
|
|
5805
|
-
skillNames: {
|
|
5806
|
-
serializedName: "skillNames",
|
|
5807
|
-
type: {
|
|
5808
|
-
name: "Sequence",
|
|
5809
|
-
element: {
|
|
5810
|
-
type: {
|
|
5811
|
-
name: "String"
|
|
5812
|
-
}
|
|
5813
|
-
}
|
|
5814
|
-
}
|
|
5815
|
-
}
|
|
5816
|
-
}
|
|
5817
|
-
}
|
|
5818
|
-
};
|
|
5819
5450
|
const SynonymMap = {
|
|
5820
5451
|
type: {
|
|
5821
5452
|
name: "Composite",
|
|
@@ -5991,18 +5622,6 @@ const SearchIndex = {
|
|
|
5991
5622
|
}
|
|
5992
5623
|
}
|
|
5993
5624
|
},
|
|
5994
|
-
normalizers: {
|
|
5995
|
-
serializedName: "normalizers",
|
|
5996
|
-
type: {
|
|
5997
|
-
name: "Sequence",
|
|
5998
|
-
element: {
|
|
5999
|
-
type: {
|
|
6000
|
-
name: "Composite",
|
|
6001
|
-
className: "LexicalNormalizer"
|
|
6002
|
-
}
|
|
6003
|
-
}
|
|
6004
|
-
}
|
|
6005
|
-
},
|
|
6006
5625
|
encryptionKey: {
|
|
6007
5626
|
serializedName: "encryptionKey",
|
|
6008
5627
|
type: {
|
|
@@ -6017,11 +5636,11 @@ const SearchIndex = {
|
|
|
6017
5636
|
className: "Similarity"
|
|
6018
5637
|
}
|
|
6019
5638
|
},
|
|
6020
|
-
|
|
5639
|
+
semanticSearch: {
|
|
6021
5640
|
serializedName: "semantic",
|
|
6022
5641
|
type: {
|
|
6023
5642
|
name: "Composite",
|
|
6024
|
-
className: "
|
|
5643
|
+
className: "SemanticSearch"
|
|
6025
5644
|
}
|
|
6026
5645
|
},
|
|
6027
5646
|
vectorSearch: {
|
|
@@ -6116,13 +5735,6 @@ const SearchField = {
|
|
|
6116
5735
|
name: "String"
|
|
6117
5736
|
}
|
|
6118
5737
|
},
|
|
6119
|
-
normalizer: {
|
|
6120
|
-
serializedName: "normalizer",
|
|
6121
|
-
nullable: true,
|
|
6122
|
-
type: {
|
|
6123
|
-
name: "String"
|
|
6124
|
-
}
|
|
6125
|
-
},
|
|
6126
5738
|
vectorSearchDimensions: {
|
|
6127
5739
|
constraints: {
|
|
6128
5740
|
InclusiveMaximum: 2048,
|
|
@@ -6134,8 +5746,8 @@ const SearchField = {
|
|
|
6134
5746
|
name: "Number"
|
|
6135
5747
|
}
|
|
6136
5748
|
},
|
|
6137
|
-
|
|
6138
|
-
serializedName: "
|
|
5749
|
+
vectorSearchProfileName: {
|
|
5750
|
+
serializedName: "vectorSearchProfile",
|
|
6139
5751
|
nullable: true,
|
|
6140
5752
|
type: {
|
|
6141
5753
|
name: "String"
|
|
@@ -6441,33 +6053,6 @@ const CharFilter = {
|
|
|
6441
6053
|
}
|
|
6442
6054
|
}
|
|
6443
6055
|
};
|
|
6444
|
-
const LexicalNormalizer = {
|
|
6445
|
-
type: {
|
|
6446
|
-
name: "Composite",
|
|
6447
|
-
className: "LexicalNormalizer",
|
|
6448
|
-
uberParent: "LexicalNormalizer",
|
|
6449
|
-
polymorphicDiscriminator: {
|
|
6450
|
-
serializedName: "@odata\\.type",
|
|
6451
|
-
clientName: "odatatype"
|
|
6452
|
-
},
|
|
6453
|
-
modelProperties: {
|
|
6454
|
-
odatatype: {
|
|
6455
|
-
serializedName: "@odata\\.type",
|
|
6456
|
-
required: true,
|
|
6457
|
-
type: {
|
|
6458
|
-
name: "String"
|
|
6459
|
-
}
|
|
6460
|
-
},
|
|
6461
|
-
name: {
|
|
6462
|
-
serializedName: "name",
|
|
6463
|
-
required: true,
|
|
6464
|
-
type: {
|
|
6465
|
-
name: "String"
|
|
6466
|
-
}
|
|
6467
|
-
}
|
|
6468
|
-
}
|
|
6469
|
-
}
|
|
6470
|
-
};
|
|
6471
6056
|
const Similarity = {
|
|
6472
6057
|
type: {
|
|
6473
6058
|
name: "Composite",
|
|
@@ -6488,12 +6073,12 @@ const Similarity = {
|
|
|
6488
6073
|
}
|
|
6489
6074
|
}
|
|
6490
6075
|
};
|
|
6491
|
-
const
|
|
6076
|
+
const SemanticSearch = {
|
|
6492
6077
|
type: {
|
|
6493
6078
|
name: "Composite",
|
|
6494
|
-
className: "
|
|
6079
|
+
className: "SemanticSearch",
|
|
6495
6080
|
modelProperties: {
|
|
6496
|
-
|
|
6081
|
+
defaultConfigurationName: {
|
|
6497
6082
|
serializedName: "defaultConfiguration",
|
|
6498
6083
|
type: {
|
|
6499
6084
|
name: "String"
|
|
@@ -6530,16 +6115,16 @@ const SemanticConfiguration = {
|
|
|
6530
6115
|
serializedName: "prioritizedFields",
|
|
6531
6116
|
type: {
|
|
6532
6117
|
name: "Composite",
|
|
6533
|
-
className: "
|
|
6118
|
+
className: "SemanticPrioritizedFields"
|
|
6534
6119
|
}
|
|
6535
6120
|
}
|
|
6536
6121
|
}
|
|
6537
6122
|
}
|
|
6538
6123
|
};
|
|
6539
|
-
const
|
|
6124
|
+
const SemanticPrioritizedFields = {
|
|
6540
6125
|
type: {
|
|
6541
6126
|
name: "Composite",
|
|
6542
|
-
className: "
|
|
6127
|
+
className: "SemanticPrioritizedFields",
|
|
6543
6128
|
modelProperties: {
|
|
6544
6129
|
titleField: {
|
|
6545
6130
|
serializedName: "titleField",
|
|
@@ -6548,7 +6133,7 @@ const PrioritizedFields = {
|
|
|
6548
6133
|
className: "SemanticField"
|
|
6549
6134
|
}
|
|
6550
6135
|
},
|
|
6551
|
-
|
|
6136
|
+
contentFields: {
|
|
6552
6137
|
serializedName: "prioritizedContentFields",
|
|
6553
6138
|
type: {
|
|
6554
6139
|
name: "Sequence",
|
|
@@ -6560,7 +6145,7 @@ const PrioritizedFields = {
|
|
|
6560
6145
|
}
|
|
6561
6146
|
}
|
|
6562
6147
|
},
|
|
6563
|
-
|
|
6148
|
+
keywordsFields: {
|
|
6564
6149
|
serializedName: "prioritizedKeywordsFields",
|
|
6565
6150
|
type: {
|
|
6566
6151
|
name: "Sequence",
|
|
@@ -6582,6 +6167,7 @@ const SemanticField = {
|
|
|
6582
6167
|
modelProperties: {
|
|
6583
6168
|
name: {
|
|
6584
6169
|
serializedName: "fieldName",
|
|
6170
|
+
required: true,
|
|
6585
6171
|
type: {
|
|
6586
6172
|
name: "String"
|
|
6587
6173
|
}
|
|
@@ -6594,8 +6180,20 @@ const VectorSearch = {
|
|
|
6594
6180
|
name: "Composite",
|
|
6595
6181
|
className: "VectorSearch",
|
|
6596
6182
|
modelProperties: {
|
|
6597
|
-
|
|
6598
|
-
serializedName: "
|
|
6183
|
+
profiles: {
|
|
6184
|
+
serializedName: "profiles",
|
|
6185
|
+
type: {
|
|
6186
|
+
name: "Sequence",
|
|
6187
|
+
element: {
|
|
6188
|
+
type: {
|
|
6189
|
+
name: "Composite",
|
|
6190
|
+
className: "VectorSearchProfile"
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
}
|
|
6194
|
+
},
|
|
6195
|
+
algorithms: {
|
|
6196
|
+
serializedName: "algorithms",
|
|
6599
6197
|
type: {
|
|
6600
6198
|
name: "Sequence",
|
|
6601
6199
|
element: {
|
|
@@ -6609,6 +6207,28 @@ const VectorSearch = {
|
|
|
6609
6207
|
}
|
|
6610
6208
|
}
|
|
6611
6209
|
};
|
|
6210
|
+
const VectorSearchProfile = {
|
|
6211
|
+
type: {
|
|
6212
|
+
name: "Composite",
|
|
6213
|
+
className: "VectorSearchProfile",
|
|
6214
|
+
modelProperties: {
|
|
6215
|
+
name: {
|
|
6216
|
+
serializedName: "name",
|
|
6217
|
+
required: true,
|
|
6218
|
+
type: {
|
|
6219
|
+
name: "String"
|
|
6220
|
+
}
|
|
6221
|
+
},
|
|
6222
|
+
algorithmConfigurationName: {
|
|
6223
|
+
serializedName: "algorithm",
|
|
6224
|
+
required: true,
|
|
6225
|
+
type: {
|
|
6226
|
+
name: "String"
|
|
6227
|
+
}
|
|
6228
|
+
}
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
};
|
|
6612
6232
|
const VectorSearchAlgorithmConfiguration = {
|
|
6613
6233
|
type: {
|
|
6614
6234
|
name: "Composite",
|
|
@@ -6681,6 +6301,7 @@ const GetIndexStatisticsResult = {
|
|
|
6681
6301
|
},
|
|
6682
6302
|
vectorIndexSize: {
|
|
6683
6303
|
serializedName: "vectorIndexSize",
|
|
6304
|
+
required: true,
|
|
6684
6305
|
readOnly: true,
|
|
6685
6306
|
type: {
|
|
6686
6307
|
name: "Number"
|
|
@@ -6713,12 +6334,6 @@ const AnalyzeRequest = {
|
|
|
6713
6334
|
name: "String"
|
|
6714
6335
|
}
|
|
6715
6336
|
},
|
|
6716
|
-
normalizer: {
|
|
6717
|
-
serializedName: "normalizer",
|
|
6718
|
-
type: {
|
|
6719
|
-
name: "String"
|
|
6720
|
-
}
|
|
6721
|
-
},
|
|
6722
6337
|
tokenFilters: {
|
|
6723
6338
|
serializedName: "tokenFilters",
|
|
6724
6339
|
type: {
|
|
@@ -6805,61 +6420,6 @@ const AnalyzedTokenInfo = {
|
|
|
6805
6420
|
}
|
|
6806
6421
|
}
|
|
6807
6422
|
};
|
|
6808
|
-
const SearchAlias = {
|
|
6809
|
-
type: {
|
|
6810
|
-
name: "Composite",
|
|
6811
|
-
className: "SearchAlias",
|
|
6812
|
-
modelProperties: {
|
|
6813
|
-
name: {
|
|
6814
|
-
serializedName: "name",
|
|
6815
|
-
required: true,
|
|
6816
|
-
type: {
|
|
6817
|
-
name: "String"
|
|
6818
|
-
}
|
|
6819
|
-
},
|
|
6820
|
-
indexes: {
|
|
6821
|
-
serializedName: "indexes",
|
|
6822
|
-
required: true,
|
|
6823
|
-
type: {
|
|
6824
|
-
name: "Sequence",
|
|
6825
|
-
element: {
|
|
6826
|
-
type: {
|
|
6827
|
-
name: "String"
|
|
6828
|
-
}
|
|
6829
|
-
}
|
|
6830
|
-
}
|
|
6831
|
-
},
|
|
6832
|
-
etag: {
|
|
6833
|
-
serializedName: "@odata\\.etag",
|
|
6834
|
-
type: {
|
|
6835
|
-
name: "String"
|
|
6836
|
-
}
|
|
6837
|
-
}
|
|
6838
|
-
}
|
|
6839
|
-
}
|
|
6840
|
-
};
|
|
6841
|
-
const ListAliasesResult = {
|
|
6842
|
-
type: {
|
|
6843
|
-
name: "Composite",
|
|
6844
|
-
className: "ListAliasesResult",
|
|
6845
|
-
modelProperties: {
|
|
6846
|
-
aliases: {
|
|
6847
|
-
serializedName: "value",
|
|
6848
|
-
required: true,
|
|
6849
|
-
readOnly: true,
|
|
6850
|
-
type: {
|
|
6851
|
-
name: "Sequence",
|
|
6852
|
-
element: {
|
|
6853
|
-
type: {
|
|
6854
|
-
name: "Composite",
|
|
6855
|
-
className: "SearchAlias"
|
|
6856
|
-
}
|
|
6857
|
-
}
|
|
6858
|
-
}
|
|
6859
|
-
}
|
|
6860
|
-
}
|
|
6861
|
-
}
|
|
6862
|
-
};
|
|
6863
6423
|
const ServiceStatistics = {
|
|
6864
6424
|
type: {
|
|
6865
6425
|
name: "Composite",
|
|
@@ -6887,13 +6447,6 @@ const ServiceCounters = {
|
|
|
6887
6447
|
name: "Composite",
|
|
6888
6448
|
className: "ServiceCounters",
|
|
6889
6449
|
modelProperties: {
|
|
6890
|
-
aliasCounter: {
|
|
6891
|
-
serializedName: "aliasesCount",
|
|
6892
|
-
type: {
|
|
6893
|
-
name: "Composite",
|
|
6894
|
-
className: "ResourceCounter"
|
|
6895
|
-
}
|
|
6896
|
-
},
|
|
6897
6450
|
documentCounter: {
|
|
6898
6451
|
serializedName: "documentCount",
|
|
6899
6452
|
type: {
|
|
@@ -7062,6 +6615,21 @@ const HnswParameters = {
|
|
|
7062
6615
|
}
|
|
7063
6616
|
}
|
|
7064
6617
|
};
|
|
6618
|
+
const ExhaustiveKnnParameters = {
|
|
6619
|
+
type: {
|
|
6620
|
+
name: "Composite",
|
|
6621
|
+
className: "ExhaustiveKnnParameters",
|
|
6622
|
+
modelProperties: {
|
|
6623
|
+
metric: {
|
|
6624
|
+
serializedName: "metric",
|
|
6625
|
+
nullable: true,
|
|
6626
|
+
type: {
|
|
6627
|
+
name: "String"
|
|
6628
|
+
}
|
|
6629
|
+
}
|
|
6630
|
+
}
|
|
6631
|
+
}
|
|
6632
|
+
};
|
|
7065
6633
|
const DistanceScoringParameters = {
|
|
7066
6634
|
type: {
|
|
7067
6635
|
name: "Composite",
|
|
@@ -7276,32 +6844,6 @@ const CustomEntityAlias = {
|
|
|
7276
6844
|
}
|
|
7277
6845
|
}
|
|
7278
6846
|
};
|
|
7279
|
-
const SearchIndexerDataNoneIdentity = {
|
|
7280
|
-
serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
|
|
7281
|
-
type: {
|
|
7282
|
-
name: "Composite",
|
|
7283
|
-
className: "SearchIndexerDataNoneIdentity",
|
|
7284
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
7285
|
-
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
7286
|
-
modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties)
|
|
7287
|
-
}
|
|
7288
|
-
};
|
|
7289
|
-
const SearchIndexerDataUserAssignedIdentity = {
|
|
7290
|
-
serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
|
|
7291
|
-
type: {
|
|
7292
|
-
name: "Composite",
|
|
7293
|
-
className: "SearchIndexerDataUserAssignedIdentity",
|
|
7294
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
7295
|
-
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
7296
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
|
|
7297
|
-
serializedName: "userAssignedIdentity",
|
|
7298
|
-
required: true,
|
|
7299
|
-
type: {
|
|
7300
|
-
name: "String"
|
|
7301
|
-
}
|
|
7302
|
-
} })
|
|
7303
|
-
}
|
|
7304
|
-
};
|
|
7305
6847
|
const HighWaterMarkChangeDetectionPolicy = {
|
|
7306
6848
|
serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
|
|
7307
6849
|
type: {
|
|
@@ -7403,11 +6945,6 @@ const OcrSkill = {
|
|
|
7403
6945
|
type: {
|
|
7404
6946
|
name: "Boolean"
|
|
7405
6947
|
}
|
|
7406
|
-
}, lineEnding: {
|
|
7407
|
-
serializedName: "lineEnding",
|
|
7408
|
-
type: {
|
|
7409
|
-
name: "String"
|
|
7410
|
-
}
|
|
7411
6948
|
} })
|
|
7412
6949
|
}
|
|
7413
6950
|
};
|
|
@@ -7697,7 +7234,7 @@ const PIIDetectionSkill = {
|
|
|
7697
7234
|
type: {
|
|
7698
7235
|
name: "String"
|
|
7699
7236
|
}
|
|
7700
|
-
},
|
|
7237
|
+
}, categories: {
|
|
7701
7238
|
serializedName: "piiCategories",
|
|
7702
7239
|
type: {
|
|
7703
7240
|
name: "Sequence",
|
|
@@ -7891,69 +7428,11 @@ const WebApiSkill = {
|
|
|
7891
7428
|
type: {
|
|
7892
7429
|
name: "Number"
|
|
7893
7430
|
}
|
|
7894
|
-
}, authResourceId: {
|
|
7895
|
-
serializedName: "authResourceId",
|
|
7896
|
-
nullable: true,
|
|
7897
|
-
type: {
|
|
7898
|
-
name: "String"
|
|
7899
|
-
}
|
|
7900
|
-
}, authIdentity: {
|
|
7901
|
-
serializedName: "authIdentity",
|
|
7902
|
-
type: {
|
|
7903
|
-
name: "Composite",
|
|
7904
|
-
className: "SearchIndexerDataIdentity"
|
|
7905
|
-
}
|
|
7906
7431
|
} })
|
|
7907
7432
|
}
|
|
7908
7433
|
};
|
|
7909
|
-
const
|
|
7910
|
-
serializedName: "#Microsoft.
|
|
7911
|
-
type: {
|
|
7912
|
-
name: "Composite",
|
|
7913
|
-
className: "AzureMachineLearningSkill",
|
|
7914
|
-
uberParent: "SearchIndexerSkill",
|
|
7915
|
-
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7916
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
|
|
7917
|
-
serializedName: "uri",
|
|
7918
|
-
nullable: true,
|
|
7919
|
-
type: {
|
|
7920
|
-
name: "String"
|
|
7921
|
-
}
|
|
7922
|
-
}, authenticationKey: {
|
|
7923
|
-
serializedName: "key",
|
|
7924
|
-
nullable: true,
|
|
7925
|
-
type: {
|
|
7926
|
-
name: "String"
|
|
7927
|
-
}
|
|
7928
|
-
}, resourceId: {
|
|
7929
|
-
serializedName: "resourceId",
|
|
7930
|
-
nullable: true,
|
|
7931
|
-
type: {
|
|
7932
|
-
name: "String"
|
|
7933
|
-
}
|
|
7934
|
-
}, timeout: {
|
|
7935
|
-
serializedName: "timeout",
|
|
7936
|
-
nullable: true,
|
|
7937
|
-
type: {
|
|
7938
|
-
name: "TimeSpan"
|
|
7939
|
-
}
|
|
7940
|
-
}, region: {
|
|
7941
|
-
serializedName: "region",
|
|
7942
|
-
nullable: true,
|
|
7943
|
-
type: {
|
|
7944
|
-
name: "String"
|
|
7945
|
-
}
|
|
7946
|
-
}, degreeOfParallelism: {
|
|
7947
|
-
serializedName: "degreeOfParallelism",
|
|
7948
|
-
nullable: true,
|
|
7949
|
-
type: {
|
|
7950
|
-
name: "Number"
|
|
7951
|
-
}
|
|
7952
|
-
} })
|
|
7953
|
-
}
|
|
7954
|
-
};
|
|
7955
|
-
const DefaultCognitiveServicesAccount = {
|
|
7956
|
-
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7434
|
+
const DefaultCognitiveServicesAccount = {
|
|
7435
|
+
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7957
7436
|
type: {
|
|
7958
7437
|
name: "Composite",
|
|
7959
7438
|
className: "DefaultCognitiveServicesAccount",
|
|
@@ -9498,36 +8977,6 @@ const PatternReplaceCharFilter = {
|
|
|
9498
8977
|
} })
|
|
9499
8978
|
}
|
|
9500
8979
|
};
|
|
9501
|
-
const CustomNormalizer = {
|
|
9502
|
-
serializedName: "#Microsoft.Azure.Search.CustomNormalizer",
|
|
9503
|
-
type: {
|
|
9504
|
-
name: "Composite",
|
|
9505
|
-
className: "CustomNormalizer",
|
|
9506
|
-
uberParent: "LexicalNormalizer",
|
|
9507
|
-
polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
|
|
9508
|
-
modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
|
|
9509
|
-
serializedName: "tokenFilters",
|
|
9510
|
-
type: {
|
|
9511
|
-
name: "Sequence",
|
|
9512
|
-
element: {
|
|
9513
|
-
type: {
|
|
9514
|
-
name: "String"
|
|
9515
|
-
}
|
|
9516
|
-
}
|
|
9517
|
-
}
|
|
9518
|
-
}, charFilters: {
|
|
9519
|
-
serializedName: "charFilters",
|
|
9520
|
-
type: {
|
|
9521
|
-
name: "Sequence",
|
|
9522
|
-
element: {
|
|
9523
|
-
type: {
|
|
9524
|
-
name: "String"
|
|
9525
|
-
}
|
|
9526
|
-
}
|
|
9527
|
-
}
|
|
9528
|
-
} })
|
|
9529
|
-
}
|
|
9530
|
-
};
|
|
9531
8980
|
const ClassicSimilarity = {
|
|
9532
8981
|
serializedName: "#Microsoft.Azure.Search.ClassicSimilarity",
|
|
9533
8982
|
type: {
|
|
@@ -9560,11 +9009,11 @@ const BM25Similarity = {
|
|
|
9560
9009
|
} })
|
|
9561
9010
|
}
|
|
9562
9011
|
};
|
|
9563
|
-
const
|
|
9012
|
+
const HnswAlgorithmConfiguration = {
|
|
9564
9013
|
serializedName: "hnsw",
|
|
9565
9014
|
type: {
|
|
9566
9015
|
name: "Composite",
|
|
9567
|
-
className: "
|
|
9016
|
+
className: "HnswAlgorithmConfiguration",
|
|
9568
9017
|
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
9569
9018
|
polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
|
|
9570
9019
|
modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
|
|
@@ -9576,6 +9025,22 @@ const HnswVectorSearchAlgorithmConfiguration = {
|
|
|
9576
9025
|
} })
|
|
9577
9026
|
}
|
|
9578
9027
|
};
|
|
9028
|
+
const ExhaustiveKnnAlgorithmConfiguration = {
|
|
9029
|
+
serializedName: "exhaustiveKnn",
|
|
9030
|
+
type: {
|
|
9031
|
+
name: "Composite",
|
|
9032
|
+
className: "ExhaustiveKnnAlgorithmConfiguration",
|
|
9033
|
+
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
9034
|
+
polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
|
|
9035
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
|
|
9036
|
+
serializedName: "exhaustiveKnnParameters",
|
|
9037
|
+
type: {
|
|
9038
|
+
name: "Composite",
|
|
9039
|
+
className: "ExhaustiveKnnParameters"
|
|
9040
|
+
}
|
|
9041
|
+
} })
|
|
9042
|
+
}
|
|
9043
|
+
};
|
|
9579
9044
|
const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
|
|
9580
9045
|
type: {
|
|
9581
9046
|
name: "Composite",
|
|
@@ -9591,7 +9056,6 @@ const SearchIndexerKnowledgeStoreFileProjectionSelector = {
|
|
|
9591
9056
|
}
|
|
9592
9057
|
};
|
|
9593
9058
|
let discriminators = {
|
|
9594
|
-
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
9595
9059
|
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
9596
9060
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9597
9061
|
SearchIndexerSkill: SearchIndexerSkill,
|
|
@@ -9601,11 +9065,8 @@ let discriminators = {
|
|
|
9601
9065
|
LexicalTokenizer: LexicalTokenizer,
|
|
9602
9066
|
TokenFilter: TokenFilter,
|
|
9603
9067
|
CharFilter: CharFilter,
|
|
9604
|
-
LexicalNormalizer: LexicalNormalizer,
|
|
9605
9068
|
Similarity: Similarity,
|
|
9606
9069
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
9607
|
-
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
|
|
9608
|
-
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
|
|
9609
9070
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
|
|
9610
9071
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
|
|
9611
9072
|
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
|
|
@@ -9627,7 +9088,6 @@ let discriminators = {
|
|
|
9627
9088
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
9628
9089
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
9629
9090
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
9630
|
-
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
9631
9091
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
9632
9092
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
9633
9093
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -9677,179 +9137,170 @@ let discriminators = {
|
|
|
9677
9137
|
"TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter,
|
|
9678
9138
|
"CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter,
|
|
9679
9139
|
"CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
|
|
9680
|
-
"LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
|
|
9681
9140
|
"Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
|
|
9682
9141
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
|
|
9683
|
-
"VectorSearchAlgorithmConfiguration.hnsw":
|
|
9142
|
+
"VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
|
|
9143
|
+
"VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration
|
|
9684
9144
|
};
|
|
9685
9145
|
|
|
9686
9146
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
9687
9147
|
__proto__: null,
|
|
9688
|
-
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9689
|
-
DataSourceCredentials: DataSourceCredentials,
|
|
9690
|
-
SearchIndexerDataContainer: SearchIndexerDataContainer,
|
|
9691
|
-
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
9692
|
-
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
9693
|
-
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9694
|
-
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
9695
|
-
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9696
|
-
SearchError: SearchError,
|
|
9697
|
-
ListDataSourcesResult: ListDataSourcesResult,
|
|
9698
|
-
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
9699
|
-
SearchIndexer: SearchIndexer,
|
|
9700
|
-
IndexingSchedule: IndexingSchedule,
|
|
9701
|
-
IndexingParameters: IndexingParameters,
|
|
9702
|
-
IndexingParametersConfiguration: IndexingParametersConfiguration,
|
|
9703
|
-
FieldMapping: FieldMapping,
|
|
9704
|
-
FieldMappingFunction: FieldMappingFunction,
|
|
9705
|
-
SearchIndexerCache: SearchIndexerCache,
|
|
9706
|
-
ListIndexersResult: ListIndexersResult,
|
|
9707
|
-
SearchIndexerStatus: SearchIndexerStatus,
|
|
9708
|
-
IndexerExecutionResult: IndexerExecutionResult,
|
|
9709
|
-
IndexerState: IndexerState,
|
|
9710
|
-
SearchIndexerError: SearchIndexerError,
|
|
9711
|
-
SearchIndexerWarning: SearchIndexerWarning,
|
|
9712
|
-
SearchIndexerLimits: SearchIndexerLimits,
|
|
9713
|
-
SearchIndexerSkillset: SearchIndexerSkillset,
|
|
9714
|
-
SearchIndexerSkill: SearchIndexerSkill,
|
|
9715
|
-
InputFieldMappingEntry: InputFieldMappingEntry,
|
|
9716
|
-
OutputFieldMappingEntry: OutputFieldMappingEntry,
|
|
9717
|
-
CognitiveServicesAccount: CognitiveServicesAccount,
|
|
9718
|
-
SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
|
|
9719
|
-
SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
|
|
9720
|
-
SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
|
|
9721
|
-
ListSkillsetsResult: ListSkillsetsResult,
|
|
9722
|
-
SkillNames: SkillNames,
|
|
9723
|
-
SynonymMap: SynonymMap,
|
|
9724
|
-
ListSynonymMapsResult: ListSynonymMapsResult,
|
|
9725
|
-
SearchIndex: SearchIndex,
|
|
9726
|
-
SearchField: SearchField,
|
|
9727
|
-
ScoringProfile: ScoringProfile,
|
|
9728
|
-
TextWeights: TextWeights,
|
|
9729
|
-
ScoringFunction: ScoringFunction,
|
|
9730
|
-
CorsOptions: CorsOptions,
|
|
9731
|
-
Suggester: Suggester,
|
|
9732
|
-
LexicalAnalyzer: LexicalAnalyzer,
|
|
9733
|
-
LexicalTokenizer: LexicalTokenizer,
|
|
9734
|
-
TokenFilter: TokenFilter,
|
|
9735
|
-
CharFilter: CharFilter,
|
|
9736
|
-
LexicalNormalizer: LexicalNormalizer,
|
|
9737
|
-
Similarity: Similarity,
|
|
9738
|
-
SemanticSettings: SemanticSettings,
|
|
9739
|
-
SemanticConfiguration: SemanticConfiguration,
|
|
9740
|
-
PrioritizedFields: PrioritizedFields,
|
|
9741
|
-
SemanticField: SemanticField,
|
|
9742
|
-
VectorSearch: VectorSearch,
|
|
9743
|
-
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
9744
|
-
ListIndexesResult: ListIndexesResult,
|
|
9745
|
-
GetIndexStatisticsResult: GetIndexStatisticsResult,
|
|
9746
9148
|
AnalyzeRequest: AnalyzeRequest,
|
|
9747
9149
|
AnalyzeResult: AnalyzeResult,
|
|
9748
9150
|
AnalyzedTokenInfo: AnalyzedTokenInfo,
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9151
|
+
AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
|
|
9152
|
+
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9153
|
+
BM25Similarity: BM25Similarity,
|
|
9154
|
+
CharFilter: CharFilter,
|
|
9155
|
+
CjkBigramTokenFilter: CjkBigramTokenFilter,
|
|
9156
|
+
ClassicSimilarity: ClassicSimilarity,
|
|
9157
|
+
ClassicTokenizer: ClassicTokenizer,
|
|
9158
|
+
CognitiveServicesAccount: CognitiveServicesAccount,
|
|
9159
|
+
CognitiveServicesAccountKey: CognitiveServicesAccountKey,
|
|
9160
|
+
CommonGramTokenFilter: CommonGramTokenFilter,
|
|
9161
|
+
ConditionalSkill: ConditionalSkill,
|
|
9162
|
+
CorsOptions: CorsOptions,
|
|
9163
|
+
CustomAnalyzer: CustomAnalyzer,
|
|
9760
9164
|
CustomEntity: CustomEntity,
|
|
9761
9165
|
CustomEntityAlias: CustomEntityAlias,
|
|
9762
|
-
SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
|
|
9763
|
-
SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
|
|
9764
|
-
HighWaterMarkChangeDetectionPolicy: HighWaterMarkChangeDetectionPolicy,
|
|
9765
|
-
SqlIntegratedChangeTrackingPolicy: SqlIntegratedChangeTrackingPolicy,
|
|
9766
|
-
SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
|
|
9767
|
-
ConditionalSkill: ConditionalSkill,
|
|
9768
|
-
KeyPhraseExtractionSkill: KeyPhraseExtractionSkill,
|
|
9769
|
-
OcrSkill: OcrSkill,
|
|
9770
|
-
ImageAnalysisSkill: ImageAnalysisSkill,
|
|
9771
|
-
LanguageDetectionSkill: LanguageDetectionSkill,
|
|
9772
|
-
ShaperSkill: ShaperSkill,
|
|
9773
|
-
MergeSkill: MergeSkill,
|
|
9774
|
-
EntityRecognitionSkill: EntityRecognitionSkill,
|
|
9775
|
-
SentimentSkill: SentimentSkill,
|
|
9776
|
-
SentimentSkillV3: SentimentSkillV3,
|
|
9777
|
-
EntityLinkingSkill: EntityLinkingSkill,
|
|
9778
|
-
EntityRecognitionSkillV3: EntityRecognitionSkillV3,
|
|
9779
|
-
PIIDetectionSkill: PIIDetectionSkill,
|
|
9780
|
-
SplitSkill: SplitSkill,
|
|
9781
9166
|
CustomEntityLookupSkill: CustomEntityLookupSkill,
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
9167
|
+
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
9168
|
+
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9169
|
+
DataSourceCredentials: DataSourceCredentials,
|
|
9786
9170
|
DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
|
|
9787
|
-
CognitiveServicesAccountKey: CognitiveServicesAccountKey,
|
|
9788
|
-
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
9789
|
-
SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
|
|
9790
|
-
DistanceScoringFunction: DistanceScoringFunction,
|
|
9791
|
-
FreshnessScoringFunction: FreshnessScoringFunction,
|
|
9792
|
-
MagnitudeScoringFunction: MagnitudeScoringFunction,
|
|
9793
|
-
TagScoringFunction: TagScoringFunction,
|
|
9794
|
-
CustomAnalyzer: CustomAnalyzer,
|
|
9795
|
-
PatternAnalyzer: PatternAnalyzer,
|
|
9796
|
-
LuceneStandardAnalyzer: LuceneStandardAnalyzer,
|
|
9797
|
-
StopAnalyzer: StopAnalyzer,
|
|
9798
|
-
ClassicTokenizer: ClassicTokenizer,
|
|
9799
|
-
EdgeNGramTokenizer: EdgeNGramTokenizer,
|
|
9800
|
-
KeywordTokenizer: KeywordTokenizer,
|
|
9801
|
-
KeywordTokenizerV2: KeywordTokenizerV2,
|
|
9802
|
-
MicrosoftLanguageTokenizer: MicrosoftLanguageTokenizer,
|
|
9803
|
-
MicrosoftLanguageStemmingTokenizer: MicrosoftLanguageStemmingTokenizer,
|
|
9804
|
-
NGramTokenizer: NGramTokenizer,
|
|
9805
|
-
PathHierarchyTokenizerV2: PathHierarchyTokenizerV2,
|
|
9806
|
-
PatternTokenizer: PatternTokenizer,
|
|
9807
|
-
LuceneStandardTokenizer: LuceneStandardTokenizer,
|
|
9808
|
-
LuceneStandardTokenizerV2: LuceneStandardTokenizerV2,
|
|
9809
|
-
UaxUrlEmailTokenizer: UaxUrlEmailTokenizer,
|
|
9810
|
-
AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
|
|
9811
|
-
CjkBigramTokenFilter: CjkBigramTokenFilter,
|
|
9812
|
-
CommonGramTokenFilter: CommonGramTokenFilter,
|
|
9813
9171
|
DictionaryDecompounderTokenFilter: DictionaryDecompounderTokenFilter,
|
|
9172
|
+
DistanceScoringFunction: DistanceScoringFunction,
|
|
9173
|
+
DistanceScoringParameters: DistanceScoringParameters,
|
|
9174
|
+
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
9814
9175
|
EdgeNGramTokenFilter: EdgeNGramTokenFilter,
|
|
9815
9176
|
EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
|
|
9177
|
+
EdgeNGramTokenizer: EdgeNGramTokenizer,
|
|
9816
9178
|
ElisionTokenFilter: ElisionTokenFilter,
|
|
9179
|
+
EntityLinkingSkill: EntityLinkingSkill,
|
|
9180
|
+
EntityRecognitionSkill: EntityRecognitionSkill,
|
|
9181
|
+
EntityRecognitionSkillV3: EntityRecognitionSkillV3,
|
|
9182
|
+
ExhaustiveKnnAlgorithmConfiguration: ExhaustiveKnnAlgorithmConfiguration,
|
|
9183
|
+
ExhaustiveKnnParameters: ExhaustiveKnnParameters,
|
|
9184
|
+
FieldMapping: FieldMapping,
|
|
9185
|
+
FieldMappingFunction: FieldMappingFunction,
|
|
9186
|
+
FreshnessScoringFunction: FreshnessScoringFunction,
|
|
9187
|
+
FreshnessScoringParameters: FreshnessScoringParameters,
|
|
9188
|
+
GetIndexStatisticsResult: GetIndexStatisticsResult,
|
|
9189
|
+
HighWaterMarkChangeDetectionPolicy: HighWaterMarkChangeDetectionPolicy,
|
|
9190
|
+
HnswAlgorithmConfiguration: HnswAlgorithmConfiguration,
|
|
9191
|
+
HnswParameters: HnswParameters,
|
|
9192
|
+
ImageAnalysisSkill: ImageAnalysisSkill,
|
|
9193
|
+
IndexerExecutionResult: IndexerExecutionResult,
|
|
9194
|
+
IndexingParameters: IndexingParameters,
|
|
9195
|
+
IndexingParametersConfiguration: IndexingParametersConfiguration,
|
|
9196
|
+
IndexingSchedule: IndexingSchedule,
|
|
9197
|
+
InputFieldMappingEntry: InputFieldMappingEntry,
|
|
9817
9198
|
KeepTokenFilter: KeepTokenFilter,
|
|
9199
|
+
KeyPhraseExtractionSkill: KeyPhraseExtractionSkill,
|
|
9818
9200
|
KeywordMarkerTokenFilter: KeywordMarkerTokenFilter,
|
|
9201
|
+
KeywordTokenizer: KeywordTokenizer,
|
|
9202
|
+
KeywordTokenizerV2: KeywordTokenizerV2,
|
|
9203
|
+
LanguageDetectionSkill: LanguageDetectionSkill,
|
|
9819
9204
|
LengthTokenFilter: LengthTokenFilter,
|
|
9205
|
+
LexicalAnalyzer: LexicalAnalyzer,
|
|
9206
|
+
LexicalTokenizer: LexicalTokenizer,
|
|
9820
9207
|
LimitTokenFilter: LimitTokenFilter,
|
|
9208
|
+
ListDataSourcesResult: ListDataSourcesResult,
|
|
9209
|
+
ListIndexersResult: ListIndexersResult,
|
|
9210
|
+
ListIndexesResult: ListIndexesResult,
|
|
9211
|
+
ListSkillsetsResult: ListSkillsetsResult,
|
|
9212
|
+
ListSynonymMapsResult: ListSynonymMapsResult,
|
|
9213
|
+
LuceneStandardAnalyzer: LuceneStandardAnalyzer,
|
|
9214
|
+
LuceneStandardTokenizer: LuceneStandardTokenizer,
|
|
9215
|
+
LuceneStandardTokenizerV2: LuceneStandardTokenizerV2,
|
|
9216
|
+
MagnitudeScoringFunction: MagnitudeScoringFunction,
|
|
9217
|
+
MagnitudeScoringParameters: MagnitudeScoringParameters,
|
|
9218
|
+
MappingCharFilter: MappingCharFilter,
|
|
9219
|
+
MergeSkill: MergeSkill,
|
|
9220
|
+
MicrosoftLanguageStemmingTokenizer: MicrosoftLanguageStemmingTokenizer,
|
|
9221
|
+
MicrosoftLanguageTokenizer: MicrosoftLanguageTokenizer,
|
|
9821
9222
|
NGramTokenFilter: NGramTokenFilter,
|
|
9822
9223
|
NGramTokenFilterV2: NGramTokenFilterV2,
|
|
9224
|
+
NGramTokenizer: NGramTokenizer,
|
|
9225
|
+
OcrSkill: OcrSkill,
|
|
9226
|
+
OutputFieldMappingEntry: OutputFieldMappingEntry,
|
|
9227
|
+
PIIDetectionSkill: PIIDetectionSkill,
|
|
9228
|
+
PathHierarchyTokenizerV2: PathHierarchyTokenizerV2,
|
|
9229
|
+
PatternAnalyzer: PatternAnalyzer,
|
|
9823
9230
|
PatternCaptureTokenFilter: PatternCaptureTokenFilter,
|
|
9231
|
+
PatternReplaceCharFilter: PatternReplaceCharFilter,
|
|
9824
9232
|
PatternReplaceTokenFilter: PatternReplaceTokenFilter,
|
|
9233
|
+
PatternTokenizer: PatternTokenizer,
|
|
9825
9234
|
PhoneticTokenFilter: PhoneticTokenFilter,
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9235
|
+
ResourceCounter: ResourceCounter,
|
|
9236
|
+
ScoringFunction: ScoringFunction,
|
|
9237
|
+
ScoringProfile: ScoringProfile,
|
|
9238
|
+
SearchError: SearchError,
|
|
9239
|
+
SearchField: SearchField,
|
|
9240
|
+
SearchIndex: SearchIndex,
|
|
9241
|
+
SearchIndexer: SearchIndexer,
|
|
9242
|
+
SearchIndexerDataContainer: SearchIndexerDataContainer,
|
|
9243
|
+
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9244
|
+
SearchIndexerError: SearchIndexerError,
|
|
9245
|
+
SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
|
|
9246
|
+
SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
|
|
9247
|
+
SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
|
|
9248
|
+
SearchIndexerKnowledgeStoreObjectProjectionSelector: SearchIndexerKnowledgeStoreObjectProjectionSelector,
|
|
9249
|
+
SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
|
|
9250
|
+
SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
|
|
9251
|
+
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
9252
|
+
SearchIndexerLimits: SearchIndexerLimits,
|
|
9253
|
+
SearchIndexerSkill: SearchIndexerSkill,
|
|
9254
|
+
SearchIndexerSkillset: SearchIndexerSkillset,
|
|
9255
|
+
SearchIndexerStatus: SearchIndexerStatus,
|
|
9256
|
+
SearchIndexerWarning: SearchIndexerWarning,
|
|
9257
|
+
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
9258
|
+
SemanticConfiguration: SemanticConfiguration,
|
|
9259
|
+
SemanticField: SemanticField,
|
|
9260
|
+
SemanticPrioritizedFields: SemanticPrioritizedFields,
|
|
9261
|
+
SemanticSearch: SemanticSearch,
|
|
9262
|
+
SentimentSkill: SentimentSkill,
|
|
9263
|
+
SentimentSkillV3: SentimentSkillV3,
|
|
9264
|
+
ServiceCounters: ServiceCounters,
|
|
9265
|
+
ServiceLimits: ServiceLimits,
|
|
9266
|
+
ServiceStatistics: ServiceStatistics,
|
|
9267
|
+
ShaperSkill: ShaperSkill,
|
|
9268
|
+
ShingleTokenFilter: ShingleTokenFilter,
|
|
9269
|
+
Similarity: Similarity,
|
|
9270
|
+
SnowballTokenFilter: SnowballTokenFilter,
|
|
9271
|
+
SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
|
|
9272
|
+
SplitSkill: SplitSkill,
|
|
9273
|
+
SqlIntegratedChangeTrackingPolicy: SqlIntegratedChangeTrackingPolicy,
|
|
9274
|
+
StemmerOverrideTokenFilter: StemmerOverrideTokenFilter,
|
|
9275
|
+
StemmerTokenFilter: StemmerTokenFilter,
|
|
9276
|
+
StopAnalyzer: StopAnalyzer,
|
|
9277
|
+
StopwordsTokenFilter: StopwordsTokenFilter,
|
|
9278
|
+
Suggester: Suggester,
|
|
9279
|
+
SynonymMap: SynonymMap,
|
|
9280
|
+
SynonymTokenFilter: SynonymTokenFilter,
|
|
9281
|
+
TagScoringFunction: TagScoringFunction,
|
|
9282
|
+
TagScoringParameters: TagScoringParameters,
|
|
9283
|
+
TextTranslationSkill: TextTranslationSkill,
|
|
9284
|
+
TextWeights: TextWeights,
|
|
9285
|
+
TokenFilter: TokenFilter,
|
|
9286
|
+
TruncateTokenFilter: TruncateTokenFilter,
|
|
9287
|
+
UaxUrlEmailTokenizer: UaxUrlEmailTokenizer,
|
|
9288
|
+
UniqueTokenFilter: UniqueTokenFilter,
|
|
9289
|
+
VectorSearch: VectorSearch,
|
|
9290
|
+
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
9291
|
+
VectorSearchProfile: VectorSearchProfile,
|
|
9292
|
+
WebApiSkill: WebApiSkill,
|
|
9293
|
+
WordDelimiterTokenFilter: WordDelimiterTokenFilter,
|
|
9294
|
+
discriminators: discriminators
|
|
9295
|
+
});
|
|
9296
|
+
|
|
9297
|
+
/*
|
|
9298
|
+
* Copyright (c) Microsoft Corporation.
|
|
9299
|
+
* Licensed under the MIT License.
|
|
9300
|
+
*
|
|
9301
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9302
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9303
|
+
*/
|
|
9853
9304
|
const contentType = {
|
|
9854
9305
|
parameterPath: ["options", "contentType"],
|
|
9855
9306
|
mapper: {
|
|
@@ -9936,15 +9387,6 @@ const apiVersion = {
|
|
|
9936
9387
|
}
|
|
9937
9388
|
}
|
|
9938
9389
|
};
|
|
9939
|
-
const skipIndexerResetRequirementForCache = {
|
|
9940
|
-
parameterPath: ["options", "skipIndexerResetRequirementForCache"],
|
|
9941
|
-
mapper: {
|
|
9942
|
-
serializedName: "ignoreResetRequirements",
|
|
9943
|
-
type: {
|
|
9944
|
-
name: "Boolean"
|
|
9945
|
-
}
|
|
9946
|
-
}
|
|
9947
|
-
};
|
|
9948
9390
|
const select = {
|
|
9949
9391
|
parameterPath: ["options", "select"],
|
|
9950
9392
|
mapper: {
|
|
@@ -9964,33 +9406,10 @@ const indexerName = {
|
|
|
9964
9406
|
}
|
|
9965
9407
|
}
|
|
9966
9408
|
};
|
|
9967
|
-
const keysOrIds = {
|
|
9968
|
-
parameterPath: ["options", "keysOrIds"],
|
|
9969
|
-
mapper: DocumentKeysOrIds
|
|
9970
|
-
};
|
|
9971
|
-
const overwrite = {
|
|
9972
|
-
parameterPath: ["options", "overwrite"],
|
|
9973
|
-
mapper: {
|
|
9974
|
-
defaultValue: false,
|
|
9975
|
-
serializedName: "overwrite",
|
|
9976
|
-
type: {
|
|
9977
|
-
name: "Boolean"
|
|
9978
|
-
}
|
|
9979
|
-
}
|
|
9980
|
-
};
|
|
9981
9409
|
const indexer = {
|
|
9982
9410
|
parameterPath: "indexer",
|
|
9983
9411
|
mapper: SearchIndexer
|
|
9984
9412
|
};
|
|
9985
|
-
const disableCacheReprocessingChangeDetection = {
|
|
9986
|
-
parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
|
|
9987
|
-
mapper: {
|
|
9988
|
-
serializedName: "disableCacheReprocessingChangeDetection",
|
|
9989
|
-
type: {
|
|
9990
|
-
name: "Boolean"
|
|
9991
|
-
}
|
|
9992
|
-
}
|
|
9993
|
-
};
|
|
9994
9413
|
const skillset = {
|
|
9995
9414
|
parameterPath: "skillset",
|
|
9996
9415
|
mapper: SearchIndexerSkillset
|
|
@@ -10005,10 +9424,6 @@ const skillsetName = {
|
|
|
10005
9424
|
}
|
|
10006
9425
|
}
|
|
10007
9426
|
};
|
|
10008
|
-
const skillNames = {
|
|
10009
|
-
parameterPath: "skillNames",
|
|
10010
|
-
mapper: SkillNames
|
|
10011
|
-
};
|
|
10012
9427
|
const synonymMap = {
|
|
10013
9428
|
parameterPath: "synonymMap",
|
|
10014
9429
|
mapper: SynonymMap
|
|
@@ -10050,20 +9465,6 @@ const request = {
|
|
|
10050
9465
|
parameterPath: "request",
|
|
10051
9466
|
mapper: AnalyzeRequest
|
|
10052
9467
|
};
|
|
10053
|
-
const alias = {
|
|
10054
|
-
parameterPath: "alias",
|
|
10055
|
-
mapper: SearchAlias
|
|
10056
|
-
};
|
|
10057
|
-
const aliasName = {
|
|
10058
|
-
parameterPath: "aliasName",
|
|
10059
|
-
mapper: {
|
|
10060
|
-
serializedName: "aliasName",
|
|
10061
|
-
required: true,
|
|
10062
|
-
type: {
|
|
10063
|
-
name: "String"
|
|
10064
|
-
}
|
|
10065
|
-
}
|
|
10066
|
-
};
|
|
10067
9468
|
|
|
10068
9469
|
/*
|
|
10069
9470
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -10088,7 +9489,7 @@ class DataSourcesImpl {
|
|
|
10088
9489
|
* @param options The options parameters.
|
|
10089
9490
|
*/
|
|
10090
9491
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
10091
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$
|
|
9492
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
10092
9493
|
}
|
|
10093
9494
|
/**
|
|
10094
9495
|
* Deletes a datasource.
|
|
@@ -10096,7 +9497,7 @@ class DataSourcesImpl {
|
|
|
10096
9497
|
* @param options The options parameters.
|
|
10097
9498
|
*/
|
|
10098
9499
|
delete(dataSourceName, options) {
|
|
10099
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$
|
|
9500
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
10100
9501
|
}
|
|
10101
9502
|
/**
|
|
10102
9503
|
* Retrieves a datasource definition.
|
|
@@ -10104,14 +9505,14 @@ class DataSourcesImpl {
|
|
|
10104
9505
|
* @param options The options parameters.
|
|
10105
9506
|
*/
|
|
10106
9507
|
get(dataSourceName, options) {
|
|
10107
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
9508
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
10108
9509
|
}
|
|
10109
9510
|
/**
|
|
10110
9511
|
* Lists all datasources available for a search service.
|
|
10111
9512
|
* @param options The options parameters.
|
|
10112
9513
|
*/
|
|
10113
9514
|
list(options) {
|
|
10114
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9515
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
10115
9516
|
}
|
|
10116
9517
|
/**
|
|
10117
9518
|
* Creates a new datasource.
|
|
@@ -10119,12 +9520,12 @@ class DataSourcesImpl {
|
|
|
10119
9520
|
* @param options The options parameters.
|
|
10120
9521
|
*/
|
|
10121
9522
|
create(dataSource, options) {
|
|
10122
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$
|
|
9523
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
10123
9524
|
}
|
|
10124
9525
|
}
|
|
10125
9526
|
// Operation Specifications
|
|
10126
|
-
const serializer$
|
|
10127
|
-
const createOrUpdateOperationSpec$
|
|
9527
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9528
|
+
const createOrUpdateOperationSpec$4 = {
|
|
10128
9529
|
path: "/datasources('{dataSourceName}')",
|
|
10129
9530
|
httpMethod: "PUT",
|
|
10130
9531
|
responses: {
|
|
@@ -10139,10 +9540,7 @@ const createOrUpdateOperationSpec$5 = {
|
|
|
10139
9540
|
}
|
|
10140
9541
|
},
|
|
10141
9542
|
requestBody: dataSource,
|
|
10142
|
-
queryParameters: [
|
|
10143
|
-
apiVersion,
|
|
10144
|
-
skipIndexerResetRequirementForCache
|
|
10145
|
-
],
|
|
9543
|
+
queryParameters: [apiVersion],
|
|
10146
9544
|
urlParameters: [endpoint, dataSourceName],
|
|
10147
9545
|
headerParameters: [
|
|
10148
9546
|
contentType,
|
|
@@ -10152,9 +9550,9 @@ const createOrUpdateOperationSpec$5 = {
|
|
|
10152
9550
|
prefer
|
|
10153
9551
|
],
|
|
10154
9552
|
mediaType: "json",
|
|
10155
|
-
serializer: serializer$
|
|
9553
|
+
serializer: serializer$5
|
|
10156
9554
|
};
|
|
10157
|
-
const deleteOperationSpec$
|
|
9555
|
+
const deleteOperationSpec$4 = {
|
|
10158
9556
|
path: "/datasources('{dataSourceName}')",
|
|
10159
9557
|
httpMethod: "DELETE",
|
|
10160
9558
|
responses: {
|
|
@@ -10171,9 +9569,9 @@ const deleteOperationSpec$5 = {
|
|
|
10171
9569
|
ifMatch,
|
|
10172
9570
|
ifNoneMatch
|
|
10173
9571
|
],
|
|
10174
|
-
serializer: serializer$
|
|
9572
|
+
serializer: serializer$5
|
|
10175
9573
|
};
|
|
10176
|
-
const getOperationSpec$
|
|
9574
|
+
const getOperationSpec$4 = {
|
|
10177
9575
|
path: "/datasources('{dataSourceName}')",
|
|
10178
9576
|
httpMethod: "GET",
|
|
10179
9577
|
responses: {
|
|
@@ -10187,9 +9585,9 @@ const getOperationSpec$5 = {
|
|
|
10187
9585
|
queryParameters: [apiVersion],
|
|
10188
9586
|
urlParameters: [endpoint, dataSourceName],
|
|
10189
9587
|
headerParameters: [accept],
|
|
10190
|
-
serializer: serializer$
|
|
9588
|
+
serializer: serializer$5
|
|
10191
9589
|
};
|
|
10192
|
-
const listOperationSpec$
|
|
9590
|
+
const listOperationSpec$4 = {
|
|
10193
9591
|
path: "/datasources",
|
|
10194
9592
|
httpMethod: "GET",
|
|
10195
9593
|
responses: {
|
|
@@ -10203,9 +9601,9 @@ const listOperationSpec$5 = {
|
|
|
10203
9601
|
queryParameters: [apiVersion, select],
|
|
10204
9602
|
urlParameters: [endpoint],
|
|
10205
9603
|
headerParameters: [accept],
|
|
10206
|
-
serializer: serializer$
|
|
9604
|
+
serializer: serializer$5
|
|
10207
9605
|
};
|
|
10208
|
-
const createOperationSpec$
|
|
9606
|
+
const createOperationSpec$4 = {
|
|
10209
9607
|
path: "/datasources",
|
|
10210
9608
|
httpMethod: "POST",
|
|
10211
9609
|
responses: {
|
|
@@ -10221,7 +9619,7 @@ const createOperationSpec$5 = {
|
|
|
10221
9619
|
urlParameters: [endpoint],
|
|
10222
9620
|
headerParameters: [contentType, accept],
|
|
10223
9621
|
mediaType: "json",
|
|
10224
|
-
serializer: serializer$
|
|
9622
|
+
serializer: serializer$5
|
|
10225
9623
|
};
|
|
10226
9624
|
|
|
10227
9625
|
/*
|
|
@@ -10248,14 +9646,6 @@ class IndexersImpl {
|
|
|
10248
9646
|
reset(indexerName, options) {
|
|
10249
9647
|
return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
|
|
10250
9648
|
}
|
|
10251
|
-
/**
|
|
10252
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
10253
|
-
* @param indexerName The name of the indexer to reset documents for.
|
|
10254
|
-
* @param options The options parameters.
|
|
10255
|
-
*/
|
|
10256
|
-
resetDocs(indexerName, options) {
|
|
10257
|
-
return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
|
|
10258
|
-
}
|
|
10259
9649
|
/**
|
|
10260
9650
|
* Runs an indexer on-demand.
|
|
10261
9651
|
* @param indexerName The name of the indexer to run.
|
|
@@ -10271,7 +9661,7 @@ class IndexersImpl {
|
|
|
10271
9661
|
* @param options The options parameters.
|
|
10272
9662
|
*/
|
|
10273
9663
|
createOrUpdate(indexerName, indexer, options) {
|
|
10274
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
9664
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
10275
9665
|
}
|
|
10276
9666
|
/**
|
|
10277
9667
|
* Deletes an indexer.
|
|
@@ -10279,7 +9669,7 @@ class IndexersImpl {
|
|
|
10279
9669
|
* @param options The options parameters.
|
|
10280
9670
|
*/
|
|
10281
9671
|
delete(indexerName, options) {
|
|
10282
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
9672
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
10283
9673
|
}
|
|
10284
9674
|
/**
|
|
10285
9675
|
* Retrieves an indexer definition.
|
|
@@ -10287,14 +9677,14 @@ class IndexersImpl {
|
|
|
10287
9677
|
* @param options The options parameters.
|
|
10288
9678
|
*/
|
|
10289
9679
|
get(indexerName, options) {
|
|
10290
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
9680
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
10291
9681
|
}
|
|
10292
9682
|
/**
|
|
10293
9683
|
* Lists all indexers available for a search service.
|
|
10294
9684
|
* @param options The options parameters.
|
|
10295
9685
|
*/
|
|
10296
9686
|
list(options) {
|
|
10297
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9687
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
10298
9688
|
}
|
|
10299
9689
|
/**
|
|
10300
9690
|
* Creates a new indexer.
|
|
@@ -10302,7 +9692,7 @@ class IndexersImpl {
|
|
|
10302
9692
|
* @param options The options parameters.
|
|
10303
9693
|
*/
|
|
10304
9694
|
create(indexer, options) {
|
|
10305
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
9695
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
10306
9696
|
}
|
|
10307
9697
|
/**
|
|
10308
9698
|
* Returns the current status and execution history of an indexer.
|
|
@@ -10314,7 +9704,7 @@ class IndexersImpl {
|
|
|
10314
9704
|
}
|
|
10315
9705
|
}
|
|
10316
9706
|
// Operation Specifications
|
|
10317
|
-
const serializer$
|
|
9707
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10318
9708
|
const resetOperationSpec = {
|
|
10319
9709
|
path: "/indexers('{indexerName}')/search.reset",
|
|
10320
9710
|
httpMethod: "POST",
|
|
@@ -10327,23 +9717,7 @@ const resetOperationSpec = {
|
|
|
10327
9717
|
queryParameters: [apiVersion],
|
|
10328
9718
|
urlParameters: [endpoint, indexerName],
|
|
10329
9719
|
headerParameters: [accept],
|
|
10330
|
-
serializer: serializer$
|
|
10331
|
-
};
|
|
10332
|
-
const resetDocsOperationSpec = {
|
|
10333
|
-
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
10334
|
-
httpMethod: "POST",
|
|
10335
|
-
responses: {
|
|
10336
|
-
204: {},
|
|
10337
|
-
default: {
|
|
10338
|
-
bodyMapper: SearchError
|
|
10339
|
-
}
|
|
10340
|
-
},
|
|
10341
|
-
requestBody: keysOrIds,
|
|
10342
|
-
queryParameters: [apiVersion, overwrite],
|
|
10343
|
-
urlParameters: [endpoint, indexerName],
|
|
10344
|
-
headerParameters: [contentType, accept],
|
|
10345
|
-
mediaType: "json",
|
|
10346
|
-
serializer: serializer$5
|
|
9720
|
+
serializer: serializer$4
|
|
10347
9721
|
};
|
|
10348
9722
|
const runOperationSpec = {
|
|
10349
9723
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -10357,9 +9731,9 @@ const runOperationSpec = {
|
|
|
10357
9731
|
queryParameters: [apiVersion],
|
|
10358
9732
|
urlParameters: [endpoint, indexerName],
|
|
10359
9733
|
headerParameters: [accept],
|
|
10360
|
-
serializer: serializer$
|
|
9734
|
+
serializer: serializer$4
|
|
10361
9735
|
};
|
|
10362
|
-
const createOrUpdateOperationSpec$
|
|
9736
|
+
const createOrUpdateOperationSpec$3 = {
|
|
10363
9737
|
path: "/indexers('{indexerName}')",
|
|
10364
9738
|
httpMethod: "PUT",
|
|
10365
9739
|
responses: {
|
|
@@ -10374,11 +9748,7 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10374
9748
|
}
|
|
10375
9749
|
},
|
|
10376
9750
|
requestBody: indexer,
|
|
10377
|
-
queryParameters: [
|
|
10378
|
-
apiVersion,
|
|
10379
|
-
skipIndexerResetRequirementForCache,
|
|
10380
|
-
disableCacheReprocessingChangeDetection
|
|
10381
|
-
],
|
|
9751
|
+
queryParameters: [apiVersion],
|
|
10382
9752
|
urlParameters: [endpoint, indexerName],
|
|
10383
9753
|
headerParameters: [
|
|
10384
9754
|
contentType,
|
|
@@ -10388,9 +9758,9 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10388
9758
|
prefer
|
|
10389
9759
|
],
|
|
10390
9760
|
mediaType: "json",
|
|
10391
|
-
serializer: serializer$
|
|
9761
|
+
serializer: serializer$4
|
|
10392
9762
|
};
|
|
10393
|
-
const deleteOperationSpec$
|
|
9763
|
+
const deleteOperationSpec$3 = {
|
|
10394
9764
|
path: "/indexers('{indexerName}')",
|
|
10395
9765
|
httpMethod: "DELETE",
|
|
10396
9766
|
responses: {
|
|
@@ -10407,9 +9777,9 @@ const deleteOperationSpec$4 = {
|
|
|
10407
9777
|
ifMatch,
|
|
10408
9778
|
ifNoneMatch
|
|
10409
9779
|
],
|
|
10410
|
-
serializer: serializer$
|
|
9780
|
+
serializer: serializer$4
|
|
10411
9781
|
};
|
|
10412
|
-
const getOperationSpec$
|
|
9782
|
+
const getOperationSpec$3 = {
|
|
10413
9783
|
path: "/indexers('{indexerName}')",
|
|
10414
9784
|
httpMethod: "GET",
|
|
10415
9785
|
responses: {
|
|
@@ -10423,9 +9793,9 @@ const getOperationSpec$4 = {
|
|
|
10423
9793
|
queryParameters: [apiVersion],
|
|
10424
9794
|
urlParameters: [endpoint, indexerName],
|
|
10425
9795
|
headerParameters: [accept],
|
|
10426
|
-
serializer: serializer$
|
|
9796
|
+
serializer: serializer$4
|
|
10427
9797
|
};
|
|
10428
|
-
const listOperationSpec$
|
|
9798
|
+
const listOperationSpec$3 = {
|
|
10429
9799
|
path: "/indexers",
|
|
10430
9800
|
httpMethod: "GET",
|
|
10431
9801
|
responses: {
|
|
@@ -10439,9 +9809,9 @@ const listOperationSpec$4 = {
|
|
|
10439
9809
|
queryParameters: [apiVersion, select],
|
|
10440
9810
|
urlParameters: [endpoint],
|
|
10441
9811
|
headerParameters: [accept],
|
|
10442
|
-
serializer: serializer$
|
|
9812
|
+
serializer: serializer$4
|
|
10443
9813
|
};
|
|
10444
|
-
const createOperationSpec$
|
|
9814
|
+
const createOperationSpec$3 = {
|
|
10445
9815
|
path: "/indexers",
|
|
10446
9816
|
httpMethod: "POST",
|
|
10447
9817
|
responses: {
|
|
@@ -10457,7 +9827,7 @@ const createOperationSpec$4 = {
|
|
|
10457
9827
|
urlParameters: [endpoint],
|
|
10458
9828
|
headerParameters: [contentType, accept],
|
|
10459
9829
|
mediaType: "json",
|
|
10460
|
-
serializer: serializer$
|
|
9830
|
+
serializer: serializer$4
|
|
10461
9831
|
};
|
|
10462
9832
|
const getStatusOperationSpec = {
|
|
10463
9833
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -10473,7 +9843,7 @@ const getStatusOperationSpec = {
|
|
|
10473
9843
|
queryParameters: [apiVersion],
|
|
10474
9844
|
urlParameters: [endpoint, indexerName],
|
|
10475
9845
|
headerParameters: [accept],
|
|
10476
|
-
serializer: serializer$
|
|
9846
|
+
serializer: serializer$4
|
|
10477
9847
|
};
|
|
10478
9848
|
|
|
10479
9849
|
/*
|
|
@@ -10499,7 +9869,7 @@ class SkillsetsImpl {
|
|
|
10499
9869
|
* @param options The options parameters.
|
|
10500
9870
|
*/
|
|
10501
9871
|
createOrUpdate(skillsetName, skillset, options) {
|
|
10502
|
-
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$
|
|
9872
|
+
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
|
|
10503
9873
|
}
|
|
10504
9874
|
/**
|
|
10505
9875
|
* Deletes a skillset in a search service.
|
|
@@ -10507,7 +9877,7 @@ class SkillsetsImpl {
|
|
|
10507
9877
|
* @param options The options parameters.
|
|
10508
9878
|
*/
|
|
10509
9879
|
delete(skillsetName, options) {
|
|
10510
|
-
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$
|
|
9880
|
+
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
|
|
10511
9881
|
}
|
|
10512
9882
|
/**
|
|
10513
9883
|
* Retrieves a skillset in a search service.
|
|
@@ -10515,14 +9885,14 @@ class SkillsetsImpl {
|
|
|
10515
9885
|
* @param options The options parameters.
|
|
10516
9886
|
*/
|
|
10517
9887
|
get(skillsetName, options) {
|
|
10518
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
9888
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
10519
9889
|
}
|
|
10520
9890
|
/**
|
|
10521
9891
|
* List all skillsets in a search service.
|
|
10522
9892
|
* @param options The options parameters.
|
|
10523
9893
|
*/
|
|
10524
9894
|
list(options) {
|
|
10525
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9895
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
10526
9896
|
}
|
|
10527
9897
|
/**
|
|
10528
9898
|
* Creates a new skillset in a search service.
|
|
@@ -10530,21 +9900,12 @@ class SkillsetsImpl {
|
|
|
10530
9900
|
* @param options The options parameters.
|
|
10531
9901
|
*/
|
|
10532
9902
|
create(skillset, options) {
|
|
10533
|
-
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$
|
|
10534
|
-
}
|
|
10535
|
-
/**
|
|
10536
|
-
* Reset an existing skillset in a search service.
|
|
10537
|
-
* @param skillsetName The name of the skillset to reset.
|
|
10538
|
-
* @param skillNames The names of skills to reset.
|
|
10539
|
-
* @param options The options parameters.
|
|
10540
|
-
*/
|
|
10541
|
-
resetSkills(skillsetName, skillNames, options) {
|
|
10542
|
-
return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
|
|
9903
|
+
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
|
|
10543
9904
|
}
|
|
10544
9905
|
}
|
|
10545
9906
|
// Operation Specifications
|
|
10546
|
-
const serializer$
|
|
10547
|
-
const createOrUpdateOperationSpec$
|
|
9907
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9908
|
+
const createOrUpdateOperationSpec$2 = {
|
|
10548
9909
|
path: "/skillsets('{skillsetName}')",
|
|
10549
9910
|
httpMethod: "PUT",
|
|
10550
9911
|
responses: {
|
|
@@ -10559,11 +9920,7 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
10559
9920
|
}
|
|
10560
9921
|
},
|
|
10561
9922
|
requestBody: skillset,
|
|
10562
|
-
queryParameters: [
|
|
10563
|
-
apiVersion,
|
|
10564
|
-
skipIndexerResetRequirementForCache,
|
|
10565
|
-
disableCacheReprocessingChangeDetection
|
|
10566
|
-
],
|
|
9923
|
+
queryParameters: [apiVersion],
|
|
10567
9924
|
urlParameters: [endpoint, skillsetName],
|
|
10568
9925
|
headerParameters: [
|
|
10569
9926
|
contentType,
|
|
@@ -10573,9 +9930,9 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
10573
9930
|
prefer
|
|
10574
9931
|
],
|
|
10575
9932
|
mediaType: "json",
|
|
10576
|
-
serializer: serializer$
|
|
9933
|
+
serializer: serializer$3
|
|
10577
9934
|
};
|
|
10578
|
-
const deleteOperationSpec$
|
|
9935
|
+
const deleteOperationSpec$2 = {
|
|
10579
9936
|
path: "/skillsets('{skillsetName}')",
|
|
10580
9937
|
httpMethod: "DELETE",
|
|
10581
9938
|
responses: {
|
|
@@ -10592,9 +9949,9 @@ const deleteOperationSpec$3 = {
|
|
|
10592
9949
|
ifMatch,
|
|
10593
9950
|
ifNoneMatch
|
|
10594
9951
|
],
|
|
10595
|
-
serializer: serializer$
|
|
9952
|
+
serializer: serializer$3
|
|
10596
9953
|
};
|
|
10597
|
-
const getOperationSpec$
|
|
9954
|
+
const getOperationSpec$2 = {
|
|
10598
9955
|
path: "/skillsets('{skillsetName}')",
|
|
10599
9956
|
httpMethod: "GET",
|
|
10600
9957
|
responses: {
|
|
@@ -10608,9 +9965,9 @@ const getOperationSpec$3 = {
|
|
|
10608
9965
|
queryParameters: [apiVersion],
|
|
10609
9966
|
urlParameters: [endpoint, skillsetName],
|
|
10610
9967
|
headerParameters: [accept],
|
|
10611
|
-
serializer: serializer$
|
|
9968
|
+
serializer: serializer$3
|
|
10612
9969
|
};
|
|
10613
|
-
const listOperationSpec$
|
|
9970
|
+
const listOperationSpec$2 = {
|
|
10614
9971
|
path: "/skillsets",
|
|
10615
9972
|
httpMethod: "GET",
|
|
10616
9973
|
responses: {
|
|
@@ -10624,9 +9981,9 @@ const listOperationSpec$3 = {
|
|
|
10624
9981
|
queryParameters: [apiVersion, select],
|
|
10625
9982
|
urlParameters: [endpoint],
|
|
10626
9983
|
headerParameters: [accept],
|
|
10627
|
-
serializer: serializer$
|
|
9984
|
+
serializer: serializer$3
|
|
10628
9985
|
};
|
|
10629
|
-
const createOperationSpec$
|
|
9986
|
+
const createOperationSpec$2 = {
|
|
10630
9987
|
path: "/skillsets",
|
|
10631
9988
|
httpMethod: "POST",
|
|
10632
9989
|
responses: {
|
|
@@ -10642,23 +9999,7 @@ const createOperationSpec$3 = {
|
|
|
10642
9999
|
urlParameters: [endpoint],
|
|
10643
10000
|
headerParameters: [contentType, accept],
|
|
10644
10001
|
mediaType: "json",
|
|
10645
|
-
serializer: serializer$
|
|
10646
|
-
};
|
|
10647
|
-
const resetSkillsOperationSpec = {
|
|
10648
|
-
path: "/skillsets('{skillsetName}')/search.resetskills",
|
|
10649
|
-
httpMethod: "POST",
|
|
10650
|
-
responses: {
|
|
10651
|
-
204: {},
|
|
10652
|
-
default: {
|
|
10653
|
-
bodyMapper: SearchError
|
|
10654
|
-
}
|
|
10655
|
-
},
|
|
10656
|
-
requestBody: skillNames,
|
|
10657
|
-
queryParameters: [apiVersion],
|
|
10658
|
-
urlParameters: [endpoint, skillsetName],
|
|
10659
|
-
headerParameters: [contentType, accept],
|
|
10660
|
-
mediaType: "json",
|
|
10661
|
-
serializer: serializer$4
|
|
10002
|
+
serializer: serializer$3
|
|
10662
10003
|
};
|
|
10663
10004
|
|
|
10664
10005
|
/*
|
|
@@ -10684,7 +10025,7 @@ class SynonymMapsImpl {
|
|
|
10684
10025
|
* @param options The options parameters.
|
|
10685
10026
|
*/
|
|
10686
10027
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
10687
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
10028
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
10688
10029
|
}
|
|
10689
10030
|
/**
|
|
10690
10031
|
* Deletes a synonym map.
|
|
@@ -10692,7 +10033,7 @@ class SynonymMapsImpl {
|
|
|
10692
10033
|
* @param options The options parameters.
|
|
10693
10034
|
*/
|
|
10694
10035
|
delete(synonymMapName, options) {
|
|
10695
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
10036
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
10696
10037
|
}
|
|
10697
10038
|
/**
|
|
10698
10039
|
* Retrieves a synonym map definition.
|
|
@@ -10700,14 +10041,14 @@ class SynonymMapsImpl {
|
|
|
10700
10041
|
* @param options The options parameters.
|
|
10701
10042
|
*/
|
|
10702
10043
|
get(synonymMapName, options) {
|
|
10703
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
10044
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
10704
10045
|
}
|
|
10705
10046
|
/**
|
|
10706
10047
|
* Lists all synonym maps available for a search service.
|
|
10707
10048
|
* @param options The options parameters.
|
|
10708
10049
|
*/
|
|
10709
10050
|
list(options) {
|
|
10710
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10051
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
10711
10052
|
}
|
|
10712
10053
|
/**
|
|
10713
10054
|
* Creates a new synonym map.
|
|
@@ -10715,12 +10056,12 @@ class SynonymMapsImpl {
|
|
|
10715
10056
|
* @param options The options parameters.
|
|
10716
10057
|
*/
|
|
10717
10058
|
create(synonymMap, options) {
|
|
10718
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
10059
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
10719
10060
|
}
|
|
10720
10061
|
}
|
|
10721
10062
|
// Operation Specifications
|
|
10722
|
-
const serializer$
|
|
10723
|
-
const createOrUpdateOperationSpec$
|
|
10063
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10064
|
+
const createOrUpdateOperationSpec$1 = {
|
|
10724
10065
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10725
10066
|
httpMethod: "PUT",
|
|
10726
10067
|
responses: {
|
|
@@ -10745,9 +10086,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
10745
10086
|
prefer
|
|
10746
10087
|
],
|
|
10747
10088
|
mediaType: "json",
|
|
10748
|
-
serializer: serializer$
|
|
10089
|
+
serializer: serializer$2
|
|
10749
10090
|
};
|
|
10750
|
-
const deleteOperationSpec$
|
|
10091
|
+
const deleteOperationSpec$1 = {
|
|
10751
10092
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10752
10093
|
httpMethod: "DELETE",
|
|
10753
10094
|
responses: {
|
|
@@ -10764,9 +10105,9 @@ const deleteOperationSpec$2 = {
|
|
|
10764
10105
|
ifMatch,
|
|
10765
10106
|
ifNoneMatch
|
|
10766
10107
|
],
|
|
10767
|
-
serializer: serializer$
|
|
10108
|
+
serializer: serializer$2
|
|
10768
10109
|
};
|
|
10769
|
-
const getOperationSpec$
|
|
10110
|
+
const getOperationSpec$1 = {
|
|
10770
10111
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10771
10112
|
httpMethod: "GET",
|
|
10772
10113
|
responses: {
|
|
@@ -10780,9 +10121,9 @@ const getOperationSpec$2 = {
|
|
|
10780
10121
|
queryParameters: [apiVersion],
|
|
10781
10122
|
urlParameters: [endpoint, synonymMapName],
|
|
10782
10123
|
headerParameters: [accept],
|
|
10783
|
-
serializer: serializer$
|
|
10124
|
+
serializer: serializer$2
|
|
10784
10125
|
};
|
|
10785
|
-
const listOperationSpec$
|
|
10126
|
+
const listOperationSpec$1 = {
|
|
10786
10127
|
path: "/synonymmaps",
|
|
10787
10128
|
httpMethod: "GET",
|
|
10788
10129
|
responses: {
|
|
@@ -10796,9 +10137,9 @@ const listOperationSpec$2 = {
|
|
|
10796
10137
|
queryParameters: [apiVersion, select],
|
|
10797
10138
|
urlParameters: [endpoint],
|
|
10798
10139
|
headerParameters: [accept],
|
|
10799
|
-
serializer: serializer$
|
|
10140
|
+
serializer: serializer$2
|
|
10800
10141
|
};
|
|
10801
|
-
const createOperationSpec$
|
|
10142
|
+
const createOperationSpec$1 = {
|
|
10802
10143
|
path: "/synonymmaps",
|
|
10803
10144
|
httpMethod: "POST",
|
|
10804
10145
|
responses: {
|
|
@@ -10814,7 +10155,7 @@ const createOperationSpec$2 = {
|
|
|
10814
10155
|
urlParameters: [endpoint],
|
|
10815
10156
|
headerParameters: [contentType, accept],
|
|
10816
10157
|
mediaType: "json",
|
|
10817
|
-
serializer: serializer$
|
|
10158
|
+
serializer: serializer$2
|
|
10818
10159
|
};
|
|
10819
10160
|
|
|
10820
10161
|
/*
|
|
@@ -10839,14 +10180,14 @@ class IndexesImpl {
|
|
|
10839
10180
|
* @param options The options parameters.
|
|
10840
10181
|
*/
|
|
10841
10182
|
create(index, options) {
|
|
10842
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec
|
|
10183
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
10843
10184
|
}
|
|
10844
10185
|
/**
|
|
10845
10186
|
* Lists all indexes available for a search service.
|
|
10846
10187
|
* @param options The options parameters.
|
|
10847
10188
|
*/
|
|
10848
10189
|
list(options) {
|
|
10849
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
10190
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
10850
10191
|
}
|
|
10851
10192
|
/**
|
|
10852
10193
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -10855,7 +10196,7 @@ class IndexesImpl {
|
|
|
10855
10196
|
* @param options The options parameters.
|
|
10856
10197
|
*/
|
|
10857
10198
|
createOrUpdate(indexName, index, options) {
|
|
10858
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec
|
|
10199
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
10859
10200
|
}
|
|
10860
10201
|
/**
|
|
10861
10202
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -10865,7 +10206,7 @@ class IndexesImpl {
|
|
|
10865
10206
|
* @param options The options parameters.
|
|
10866
10207
|
*/
|
|
10867
10208
|
delete(indexName, options) {
|
|
10868
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec
|
|
10209
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
10869
10210
|
}
|
|
10870
10211
|
/**
|
|
10871
10212
|
* Retrieves an index definition.
|
|
@@ -10873,7 +10214,7 @@ class IndexesImpl {
|
|
|
10873
10214
|
* @param options The options parameters.
|
|
10874
10215
|
*/
|
|
10875
10216
|
get(indexName, options) {
|
|
10876
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec
|
|
10217
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
10877
10218
|
}
|
|
10878
10219
|
/**
|
|
10879
10220
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10894,8 +10235,8 @@ class IndexesImpl {
|
|
|
10894
10235
|
}
|
|
10895
10236
|
}
|
|
10896
10237
|
// Operation Specifications
|
|
10897
|
-
const serializer$
|
|
10898
|
-
const createOperationSpec
|
|
10238
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10239
|
+
const createOperationSpec = {
|
|
10899
10240
|
path: "/indexes",
|
|
10900
10241
|
httpMethod: "POST",
|
|
10901
10242
|
responses: {
|
|
@@ -10911,9 +10252,9 @@ const createOperationSpec$1 = {
|
|
|
10911
10252
|
urlParameters: [endpoint],
|
|
10912
10253
|
headerParameters: [contentType, accept],
|
|
10913
10254
|
mediaType: "json",
|
|
10914
|
-
serializer: serializer$
|
|
10255
|
+
serializer: serializer$1
|
|
10915
10256
|
};
|
|
10916
|
-
const listOperationSpec
|
|
10257
|
+
const listOperationSpec = {
|
|
10917
10258
|
path: "/indexes",
|
|
10918
10259
|
httpMethod: "GET",
|
|
10919
10260
|
responses: {
|
|
@@ -10927,9 +10268,9 @@ const listOperationSpec$1 = {
|
|
|
10927
10268
|
queryParameters: [apiVersion, select],
|
|
10928
10269
|
urlParameters: [endpoint],
|
|
10929
10270
|
headerParameters: [accept],
|
|
10930
|
-
serializer: serializer$
|
|
10271
|
+
serializer: serializer$1
|
|
10931
10272
|
};
|
|
10932
|
-
const createOrUpdateOperationSpec
|
|
10273
|
+
const createOrUpdateOperationSpec = {
|
|
10933
10274
|
path: "/indexes('{indexName}')",
|
|
10934
10275
|
httpMethod: "PUT",
|
|
10935
10276
|
responses: {
|
|
@@ -10954,9 +10295,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
10954
10295
|
prefer
|
|
10955
10296
|
],
|
|
10956
10297
|
mediaType: "json",
|
|
10957
|
-
serializer: serializer$
|
|
10298
|
+
serializer: serializer$1
|
|
10958
10299
|
};
|
|
10959
|
-
const deleteOperationSpec
|
|
10300
|
+
const deleteOperationSpec = {
|
|
10960
10301
|
path: "/indexes('{indexName}')",
|
|
10961
10302
|
httpMethod: "DELETE",
|
|
10962
10303
|
responses: {
|
|
@@ -10973,9 +10314,9 @@ const deleteOperationSpec$1 = {
|
|
|
10973
10314
|
ifMatch,
|
|
10974
10315
|
ifNoneMatch
|
|
10975
10316
|
],
|
|
10976
|
-
serializer: serializer$
|
|
10317
|
+
serializer: serializer$1
|
|
10977
10318
|
};
|
|
10978
|
-
const getOperationSpec
|
|
10319
|
+
const getOperationSpec = {
|
|
10979
10320
|
path: "/indexes('{indexName}')",
|
|
10980
10321
|
httpMethod: "GET",
|
|
10981
10322
|
responses: {
|
|
@@ -10989,7 +10330,7 @@ const getOperationSpec$1 = {
|
|
|
10989
10330
|
queryParameters: [apiVersion],
|
|
10990
10331
|
urlParameters: [endpoint, indexName],
|
|
10991
10332
|
headerParameters: [accept],
|
|
10992
|
-
serializer: serializer$
|
|
10333
|
+
serializer: serializer$1
|
|
10993
10334
|
};
|
|
10994
10335
|
const getStatisticsOperationSpec = {
|
|
10995
10336
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -11005,7 +10346,7 @@ const getStatisticsOperationSpec = {
|
|
|
11005
10346
|
queryParameters: [apiVersion],
|
|
11006
10347
|
urlParameters: [endpoint, indexName],
|
|
11007
10348
|
headerParameters: [accept],
|
|
11008
|
-
serializer: serializer$
|
|
10349
|
+
serializer: serializer$1
|
|
11009
10350
|
};
|
|
11010
10351
|
const analyzeOperationSpec = {
|
|
11011
10352
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -11023,163 +10364,6 @@ const analyzeOperationSpec = {
|
|
|
11023
10364
|
urlParameters: [endpoint, indexName],
|
|
11024
10365
|
headerParameters: [contentType, accept],
|
|
11025
10366
|
mediaType: "json",
|
|
11026
|
-
serializer: serializer$2
|
|
11027
|
-
};
|
|
11028
|
-
|
|
11029
|
-
/*
|
|
11030
|
-
* Copyright (c) Microsoft Corporation.
|
|
11031
|
-
* Licensed under the MIT License.
|
|
11032
|
-
*
|
|
11033
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
11034
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11035
|
-
*/
|
|
11036
|
-
/** Class containing Aliases operations. */
|
|
11037
|
-
class AliasesImpl {
|
|
11038
|
-
/**
|
|
11039
|
-
* Initialize a new instance of the class Aliases class.
|
|
11040
|
-
* @param client Reference to the service client
|
|
11041
|
-
*/
|
|
11042
|
-
constructor(client) {
|
|
11043
|
-
this.client = client;
|
|
11044
|
-
}
|
|
11045
|
-
/**
|
|
11046
|
-
* Creates a new search alias.
|
|
11047
|
-
* @param alias The definition of the alias to create.
|
|
11048
|
-
* @param options The options parameters.
|
|
11049
|
-
*/
|
|
11050
|
-
create(alias, options) {
|
|
11051
|
-
return this.client.sendOperationRequest({ alias, options }, createOperationSpec);
|
|
11052
|
-
}
|
|
11053
|
-
/**
|
|
11054
|
-
* Lists all aliases available for a search service.
|
|
11055
|
-
* @param options The options parameters.
|
|
11056
|
-
*/
|
|
11057
|
-
list(options) {
|
|
11058
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
11059
|
-
}
|
|
11060
|
-
/**
|
|
11061
|
-
* Creates a new search alias or updates an alias if it already exists.
|
|
11062
|
-
* @param aliasName The definition of the alias to create or update.
|
|
11063
|
-
* @param alias The definition of the alias to create or update.
|
|
11064
|
-
* @param options The options parameters.
|
|
11065
|
-
*/
|
|
11066
|
-
createOrUpdate(aliasName, alias, options) {
|
|
11067
|
-
return this.client.sendOperationRequest({ aliasName, alias, options }, createOrUpdateOperationSpec);
|
|
11068
|
-
}
|
|
11069
|
-
/**
|
|
11070
|
-
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
11071
|
-
* recovery option. The mapped index is untouched by this operation.
|
|
11072
|
-
* @param aliasName The name of the alias to delete.
|
|
11073
|
-
* @param options The options parameters.
|
|
11074
|
-
*/
|
|
11075
|
-
delete(aliasName, options) {
|
|
11076
|
-
return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
|
|
11077
|
-
}
|
|
11078
|
-
/**
|
|
11079
|
-
* Retrieves an alias definition.
|
|
11080
|
-
* @param aliasName The name of the alias to retrieve.
|
|
11081
|
-
* @param options The options parameters.
|
|
11082
|
-
*/
|
|
11083
|
-
get(aliasName, options) {
|
|
11084
|
-
return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
|
|
11085
|
-
}
|
|
11086
|
-
}
|
|
11087
|
-
// Operation Specifications
|
|
11088
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11089
|
-
const createOperationSpec = {
|
|
11090
|
-
path: "/aliases",
|
|
11091
|
-
httpMethod: "POST",
|
|
11092
|
-
responses: {
|
|
11093
|
-
201: {
|
|
11094
|
-
bodyMapper: SearchAlias
|
|
11095
|
-
},
|
|
11096
|
-
default: {
|
|
11097
|
-
bodyMapper: SearchError
|
|
11098
|
-
}
|
|
11099
|
-
},
|
|
11100
|
-
requestBody: alias,
|
|
11101
|
-
queryParameters: [apiVersion],
|
|
11102
|
-
urlParameters: [endpoint],
|
|
11103
|
-
headerParameters: [contentType, accept],
|
|
11104
|
-
mediaType: "json",
|
|
11105
|
-
serializer: serializer$1
|
|
11106
|
-
};
|
|
11107
|
-
const listOperationSpec = {
|
|
11108
|
-
path: "/aliases",
|
|
11109
|
-
httpMethod: "GET",
|
|
11110
|
-
responses: {
|
|
11111
|
-
200: {
|
|
11112
|
-
bodyMapper: ListAliasesResult
|
|
11113
|
-
},
|
|
11114
|
-
default: {
|
|
11115
|
-
bodyMapper: SearchError
|
|
11116
|
-
}
|
|
11117
|
-
},
|
|
11118
|
-
queryParameters: [apiVersion],
|
|
11119
|
-
urlParameters: [endpoint],
|
|
11120
|
-
headerParameters: [accept],
|
|
11121
|
-
serializer: serializer$1
|
|
11122
|
-
};
|
|
11123
|
-
const createOrUpdateOperationSpec = {
|
|
11124
|
-
path: "/aliases('{aliasName}')",
|
|
11125
|
-
httpMethod: "PUT",
|
|
11126
|
-
responses: {
|
|
11127
|
-
200: {
|
|
11128
|
-
bodyMapper: SearchAlias
|
|
11129
|
-
},
|
|
11130
|
-
201: {
|
|
11131
|
-
bodyMapper: SearchAlias
|
|
11132
|
-
},
|
|
11133
|
-
default: {
|
|
11134
|
-
bodyMapper: SearchError
|
|
11135
|
-
}
|
|
11136
|
-
},
|
|
11137
|
-
requestBody: alias,
|
|
11138
|
-
queryParameters: [apiVersion],
|
|
11139
|
-
urlParameters: [endpoint, aliasName],
|
|
11140
|
-
headerParameters: [
|
|
11141
|
-
contentType,
|
|
11142
|
-
accept,
|
|
11143
|
-
ifMatch,
|
|
11144
|
-
ifNoneMatch,
|
|
11145
|
-
prefer
|
|
11146
|
-
],
|
|
11147
|
-
mediaType: "json",
|
|
11148
|
-
serializer: serializer$1
|
|
11149
|
-
};
|
|
11150
|
-
const deleteOperationSpec = {
|
|
11151
|
-
path: "/aliases('{aliasName}')",
|
|
11152
|
-
httpMethod: "DELETE",
|
|
11153
|
-
responses: {
|
|
11154
|
-
204: {},
|
|
11155
|
-
404: {},
|
|
11156
|
-
default: {
|
|
11157
|
-
bodyMapper: SearchError
|
|
11158
|
-
}
|
|
11159
|
-
},
|
|
11160
|
-
queryParameters: [apiVersion],
|
|
11161
|
-
urlParameters: [endpoint, aliasName],
|
|
11162
|
-
headerParameters: [
|
|
11163
|
-
accept,
|
|
11164
|
-
ifMatch,
|
|
11165
|
-
ifNoneMatch
|
|
11166
|
-
],
|
|
11167
|
-
serializer: serializer$1
|
|
11168
|
-
};
|
|
11169
|
-
const getOperationSpec = {
|
|
11170
|
-
path: "/aliases('{aliasName}')",
|
|
11171
|
-
httpMethod: "GET",
|
|
11172
|
-
responses: {
|
|
11173
|
-
200: {
|
|
11174
|
-
bodyMapper: SearchAlias
|
|
11175
|
-
},
|
|
11176
|
-
default: {
|
|
11177
|
-
bodyMapper: SearchError
|
|
11178
|
-
}
|
|
11179
|
-
},
|
|
11180
|
-
queryParameters: [apiVersion],
|
|
11181
|
-
urlParameters: [endpoint, aliasName],
|
|
11182
|
-
headerParameters: [accept],
|
|
11183
10367
|
serializer: serializer$1
|
|
11184
10368
|
};
|
|
11185
10369
|
|
|
@@ -11213,13 +10397,13 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
11213
10397
|
const defaults = {
|
|
11214
10398
|
requestContentType: "application/json; charset=utf-8"
|
|
11215
10399
|
};
|
|
11216
|
-
const packageDetails = `azsdk-js-search-documents/12.0.0
|
|
10400
|
+
const packageDetails = `azsdk-js-search-documents/12.0.0`;
|
|
11217
10401
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
11218
10402
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
11219
10403
|
: `${packageDetails}`;
|
|
11220
10404
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
11221
10405
|
userAgentPrefix
|
|
11222
|
-
},
|
|
10406
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
|
11223
10407
|
super(optionsWithDefaults);
|
|
11224
10408
|
// Parameter assignments
|
|
11225
10409
|
this.endpoint = endpoint;
|
|
@@ -11229,7 +10413,32 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
11229
10413
|
this.skillsets = new SkillsetsImpl(this);
|
|
11230
10414
|
this.synonymMaps = new SynonymMapsImpl(this);
|
|
11231
10415
|
this.indexes = new IndexesImpl(this);
|
|
11232
|
-
this.
|
|
10416
|
+
this.addCustomApiVersionPolicy(apiVersion);
|
|
10417
|
+
}
|
|
10418
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
10419
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
10420
|
+
if (!apiVersion) {
|
|
10421
|
+
return;
|
|
10422
|
+
}
|
|
10423
|
+
const apiVersionPolicy = {
|
|
10424
|
+
name: "CustomApiVersionPolicy",
|
|
10425
|
+
async sendRequest(request, next) {
|
|
10426
|
+
const param = request.url.split("?");
|
|
10427
|
+
if (param.length > 1) {
|
|
10428
|
+
const newParams = param[1].split("&").map((item) => {
|
|
10429
|
+
if (item.indexOf("api-version") > -1) {
|
|
10430
|
+
return "api-version=" + apiVersion;
|
|
10431
|
+
}
|
|
10432
|
+
else {
|
|
10433
|
+
return item;
|
|
10434
|
+
}
|
|
10435
|
+
});
|
|
10436
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
10437
|
+
}
|
|
10438
|
+
return next(request);
|
|
10439
|
+
}
|
|
10440
|
+
};
|
|
10441
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
11233
10442
|
}
|
|
11234
10443
|
/**
|
|
11235
10444
|
* Gets service level statistics for a search service.
|
|
@@ -11259,6 +10468,7 @@ const getServiceStatisticsOperationSpec = {
|
|
|
11259
10468
|
};
|
|
11260
10469
|
|
|
11261
10470
|
// Copyright (c) Microsoft Corporation.
|
|
10471
|
+
// Licensed under the MIT license.
|
|
11262
10472
|
/**
|
|
11263
10473
|
* Class to perform operations to manage
|
|
11264
10474
|
* (create, update, list/delete)
|
|
@@ -11313,85 +10523,23 @@ class SearchIndexClient {
|
|
|
11313
10523
|
this.apiVersion = this.serviceVersion;
|
|
11314
10524
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
11315
10525
|
if (coreAuth.isTokenCredential(credential)) {
|
|
11316
|
-
const scope = this.options.audience
|
|
11317
|
-
? `${this.options.audience}/.default`
|
|
11318
|
-
: `${exports.KnownSearchAudience.AzurePublicCloud}/.default`;
|
|
11319
|
-
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: scope }));
|
|
11320
|
-
}
|
|
11321
|
-
else {
|
|
11322
|
-
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
11323
|
-
}
|
|
11324
|
-
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
11325
|
-
}
|
|
11326
|
-
listIndexesPage(options = {}) {
|
|
11327
|
-
return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
|
|
11328
|
-
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
|
|
11329
|
-
try {
|
|
11330
|
-
const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
|
|
11331
|
-
const mapped = result.indexes.map(generatedIndexToPublicIndex);
|
|
11332
|
-
yield yield tslib.__await(mapped);
|
|
11333
|
-
}
|
|
11334
|
-
catch (e) {
|
|
11335
|
-
span.setStatus({
|
|
11336
|
-
status: "error",
|
|
11337
|
-
error: e.message,
|
|
11338
|
-
});
|
|
11339
|
-
throw e;
|
|
11340
|
-
}
|
|
11341
|
-
finally {
|
|
11342
|
-
span.end();
|
|
11343
|
-
}
|
|
11344
|
-
});
|
|
11345
|
-
}
|
|
11346
|
-
listIndexesAll(options = {}) {
|
|
11347
|
-
return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
|
|
11348
|
-
var _a, e_1, _b, _c;
|
|
11349
|
-
try {
|
|
11350
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
11351
|
-
_c = _f.value;
|
|
11352
|
-
_d = false;
|
|
11353
|
-
try {
|
|
11354
|
-
const page = _c;
|
|
11355
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11356
|
-
}
|
|
11357
|
-
finally {
|
|
11358
|
-
_d = true;
|
|
11359
|
-
}
|
|
11360
|
-
}
|
|
11361
|
-
}
|
|
11362
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
11363
|
-
finally {
|
|
11364
|
-
try {
|
|
11365
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
11366
|
-
}
|
|
11367
|
-
finally { if (e_1) throw e_1.error; }
|
|
11368
|
-
}
|
|
11369
|
-
});
|
|
11370
|
-
}
|
|
11371
|
-
/**
|
|
11372
|
-
* Retrieves a list of existing indexes in the service.
|
|
11373
|
-
* @param options - Options to the list index operation.
|
|
11374
|
-
*/
|
|
11375
|
-
listIndexes(options = {}) {
|
|
11376
|
-
const iter = this.listIndexesAll(options);
|
|
11377
|
-
return {
|
|
11378
|
-
next() {
|
|
11379
|
-
return iter.next();
|
|
11380
|
-
},
|
|
11381
|
-
[Symbol.asyncIterator]() {
|
|
11382
|
-
return this;
|
|
11383
|
-
},
|
|
11384
|
-
byPage: () => {
|
|
11385
|
-
return this.listIndexesPage(options);
|
|
11386
|
-
},
|
|
11387
|
-
};
|
|
10526
|
+
const scope = this.options.audience
|
|
10527
|
+
? `${this.options.audience}/.default`
|
|
10528
|
+
: `${exports.KnownSearchAudience.AzurePublicCloud}/.default`;
|
|
10529
|
+
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: scope }));
|
|
10530
|
+
}
|
|
10531
|
+
else {
|
|
10532
|
+
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
10533
|
+
}
|
|
10534
|
+
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
11388
10535
|
}
|
|
11389
|
-
|
|
11390
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
|
11391
|
-
const { span, updatedOptions } = createSpan("
|
|
10536
|
+
listIndexesPage(options = {}) {
|
|
10537
|
+
return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
|
|
10538
|
+
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
|
|
11392
10539
|
try {
|
|
11393
|
-
const result = yield tslib.__await(this.client.
|
|
11394
|
-
|
|
10540
|
+
const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
|
|
10541
|
+
const mapped = result.indexes.map(generatedIndexToPublicIndex);
|
|
10542
|
+
yield yield tslib.__await(mapped);
|
|
11395
10543
|
}
|
|
11396
10544
|
catch (e) {
|
|
11397
10545
|
span.setStatus({
|
|
@@ -11405,37 +10553,32 @@ class SearchIndexClient {
|
|
|
11405
10553
|
}
|
|
11406
10554
|
});
|
|
11407
10555
|
}
|
|
11408
|
-
|
|
11409
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
|
11410
|
-
var _a,
|
|
10556
|
+
listIndexesAll(options = {}) {
|
|
10557
|
+
return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
|
|
10558
|
+
var _a, e_1, _b, _c;
|
|
11411
10559
|
try {
|
|
11412
|
-
for (var _d = true, _e = tslib.__asyncValues(this.
|
|
10560
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11413
10561
|
_c = _f.value;
|
|
11414
10562
|
_d = false;
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11418
|
-
}
|
|
11419
|
-
finally {
|
|
11420
|
-
_d = true;
|
|
11421
|
-
}
|
|
10563
|
+
const page = _c;
|
|
10564
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11422
10565
|
}
|
|
11423
10566
|
}
|
|
11424
|
-
catch (
|
|
10567
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
11425
10568
|
finally {
|
|
11426
10569
|
try {
|
|
11427
10570
|
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
11428
10571
|
}
|
|
11429
|
-
finally { if (
|
|
10572
|
+
finally { if (e_1) throw e_1.error; }
|
|
11430
10573
|
}
|
|
11431
10574
|
});
|
|
11432
10575
|
}
|
|
11433
10576
|
/**
|
|
11434
|
-
*
|
|
11435
|
-
* @param options -
|
|
10577
|
+
* Retrieves a list of existing indexes in the service.
|
|
10578
|
+
* @param options - Options to the list index operation.
|
|
11436
10579
|
*/
|
|
11437
|
-
|
|
11438
|
-
const iter = this.
|
|
10580
|
+
listIndexes(options = {}) {
|
|
10581
|
+
const iter = this.listIndexesAll(options);
|
|
11439
10582
|
return {
|
|
11440
10583
|
next() {
|
|
11441
10584
|
return iter.next();
|
|
@@ -11444,7 +10587,7 @@ class SearchIndexClient {
|
|
|
11444
10587
|
return this;
|
|
11445
10588
|
},
|
|
11446
10589
|
byPage: () => {
|
|
11447
|
-
return this.
|
|
10590
|
+
return this.listIndexesPage(options);
|
|
11448
10591
|
},
|
|
11449
10592
|
};
|
|
11450
10593
|
}
|
|
@@ -11470,26 +10613,21 @@ class SearchIndexClient {
|
|
|
11470
10613
|
}
|
|
11471
10614
|
listIndexesNamesAll(options = {}) {
|
|
11472
10615
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
|
|
11473
|
-
var _a,
|
|
10616
|
+
var _a, e_2, _b, _c;
|
|
11474
10617
|
try {
|
|
11475
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
10618
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11476
10619
|
_c = _f.value;
|
|
11477
10620
|
_d = false;
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11481
|
-
}
|
|
11482
|
-
finally {
|
|
11483
|
-
_d = true;
|
|
11484
|
-
}
|
|
10621
|
+
const page = _c;
|
|
10622
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11485
10623
|
}
|
|
11486
10624
|
}
|
|
11487
|
-
catch (
|
|
10625
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
11488
10626
|
finally {
|
|
11489
10627
|
try {
|
|
11490
10628
|
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
11491
10629
|
}
|
|
11492
|
-
finally { if (
|
|
10630
|
+
finally { if (e_2) throw e_2.error; }
|
|
11493
10631
|
}
|
|
11494
10632
|
});
|
|
11495
10633
|
}
|
|
@@ -11737,97 +10875,6 @@ class SearchIndexClient {
|
|
|
11737
10875
|
span.end();
|
|
11738
10876
|
}
|
|
11739
10877
|
}
|
|
11740
|
-
/**
|
|
11741
|
-
* Creates a new search alias or updates an alias if it already exists.
|
|
11742
|
-
* @param alias - The definition of the alias to create or update.
|
|
11743
|
-
* @param options - The options parameters.
|
|
11744
|
-
*/
|
|
11745
|
-
async createOrUpdateAlias(alias, options = {}) {
|
|
11746
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options);
|
|
11747
|
-
try {
|
|
11748
|
-
const etag = options.onlyIfUnchanged ? alias.etag : undefined;
|
|
11749
|
-
const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11750
|
-
return result;
|
|
11751
|
-
}
|
|
11752
|
-
catch (e) {
|
|
11753
|
-
span.setStatus({
|
|
11754
|
-
status: "error",
|
|
11755
|
-
error: e.message,
|
|
11756
|
-
});
|
|
11757
|
-
throw e;
|
|
11758
|
-
}
|
|
11759
|
-
finally {
|
|
11760
|
-
span.end();
|
|
11761
|
-
}
|
|
11762
|
-
}
|
|
11763
|
-
/**
|
|
11764
|
-
* Creates a new search alias.
|
|
11765
|
-
* @param alias - The definition of the alias to create.
|
|
11766
|
-
* @param options - The options parameters.
|
|
11767
|
-
*/
|
|
11768
|
-
async createAlias(alias, options = {}) {
|
|
11769
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-createAlias", options);
|
|
11770
|
-
try {
|
|
11771
|
-
const result = await this.client.aliases.create(alias, updatedOptions);
|
|
11772
|
-
return result;
|
|
11773
|
-
}
|
|
11774
|
-
catch (e) {
|
|
11775
|
-
span.setStatus({
|
|
11776
|
-
status: "error",
|
|
11777
|
-
error: e.message,
|
|
11778
|
-
});
|
|
11779
|
-
throw e;
|
|
11780
|
-
}
|
|
11781
|
-
finally {
|
|
11782
|
-
span.end();
|
|
11783
|
-
}
|
|
11784
|
-
}
|
|
11785
|
-
/**
|
|
11786
|
-
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
11787
|
-
* recovery option. The mapped index is untouched by this operation.
|
|
11788
|
-
* @param alias - Alias/Name name of the alias to delete.
|
|
11789
|
-
* @param options - The options parameters.
|
|
11790
|
-
*/
|
|
11791
|
-
async deleteAlias(alias, options = {}) {
|
|
11792
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteAlias", options);
|
|
11793
|
-
try {
|
|
11794
|
-
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
11795
|
-
const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
|
|
11796
|
-
await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11797
|
-
}
|
|
11798
|
-
catch (e) {
|
|
11799
|
-
span.setStatus({
|
|
11800
|
-
status: "error",
|
|
11801
|
-
error: e.message,
|
|
11802
|
-
});
|
|
11803
|
-
throw e;
|
|
11804
|
-
}
|
|
11805
|
-
finally {
|
|
11806
|
-
span.end();
|
|
11807
|
-
}
|
|
11808
|
-
}
|
|
11809
|
-
/**
|
|
11810
|
-
* Retrieves an alias definition.
|
|
11811
|
-
* @param aliasName - The name of the alias to retrieve.
|
|
11812
|
-
* @param options - The options parameters.
|
|
11813
|
-
*/
|
|
11814
|
-
async getAlias(aliasName, options = {}) {
|
|
11815
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-getAlias", options);
|
|
11816
|
-
try {
|
|
11817
|
-
const result = await this.client.aliases.get(aliasName, updatedOptions);
|
|
11818
|
-
return result;
|
|
11819
|
-
}
|
|
11820
|
-
catch (e) {
|
|
11821
|
-
span.setStatus({
|
|
11822
|
-
status: "error",
|
|
11823
|
-
error: e.message,
|
|
11824
|
-
});
|
|
11825
|
-
throw e;
|
|
11826
|
-
}
|
|
11827
|
-
finally {
|
|
11828
|
-
span.end();
|
|
11829
|
-
}
|
|
11830
|
-
}
|
|
11831
10878
|
/**
|
|
11832
10879
|
* Retrieves statistics about an index, such as the count of documents and the size
|
|
11833
10880
|
* of index storage.
|
|
@@ -11858,7 +10905,7 @@ class SearchIndexClient {
|
|
|
11858
10905
|
* @param options - Additional arguments
|
|
11859
10906
|
*/
|
|
11860
10907
|
async analyzeText(indexName, options) {
|
|
11861
|
-
const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
|
|
10908
|
+
const { abortSignal, requestOptions, tracingOptions, analyzerName: analyzer, tokenizerName: tokenizer } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions", "analyzerName", "tokenizerName"]);
|
|
11862
10909
|
const operationOptions = {
|
|
11863
10910
|
abortSignal,
|
|
11864
10911
|
requestOptions,
|
|
@@ -11866,7 +10913,7 @@ class SearchIndexClient {
|
|
|
11866
10913
|
};
|
|
11867
10914
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
11868
10915
|
try {
|
|
11869
|
-
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer
|
|
10916
|
+
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer, tokenizer }), updatedOptions);
|
|
11870
10917
|
return result;
|
|
11871
10918
|
}
|
|
11872
10919
|
catch (e) {
|
|
@@ -11916,6 +10963,7 @@ class SearchIndexClient {
|
|
|
11916
10963
|
}
|
|
11917
10964
|
|
|
11918
10965
|
// Copyright (c) Microsoft Corporation.
|
|
10966
|
+
// Licensed under the MIT license.
|
|
11919
10967
|
/**
|
|
11920
10968
|
* Class to perform operations to manage
|
|
11921
10969
|
* (create, update, list/delete)
|
|
@@ -12245,7 +11293,7 @@ class SearchIndexerClient {
|
|
|
12245
11293
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
|
|
12246
11294
|
try {
|
|
12247
11295
|
const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
|
|
12248
|
-
const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag
|
|
11296
|
+
const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12249
11297
|
return generatedSearchIndexerToPublicSearchIndexer(result);
|
|
12250
11298
|
}
|
|
12251
11299
|
catch (e) {
|
|
@@ -12268,7 +11316,7 @@ class SearchIndexerClient {
|
|
|
12268
11316
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
|
|
12269
11317
|
try {
|
|
12270
11318
|
const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
|
|
12271
|
-
const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag
|
|
11319
|
+
const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12272
11320
|
return generatedDataSourceToPublicDataSource(result);
|
|
12273
11321
|
}
|
|
12274
11322
|
catch (e) {
|
|
@@ -12291,7 +11339,7 @@ class SearchIndexerClient {
|
|
|
12291
11339
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
|
|
12292
11340
|
try {
|
|
12293
11341
|
const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
|
|
12294
|
-
const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag
|
|
11342
|
+
const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12295
11343
|
return generatedSkillsetToPublicSkillset(result);
|
|
12296
11344
|
}
|
|
12297
11345
|
catch (e) {
|
|
@@ -12450,52 +11498,6 @@ class SearchIndexerClient {
|
|
|
12450
11498
|
span.end();
|
|
12451
11499
|
}
|
|
12452
11500
|
}
|
|
12453
|
-
/**
|
|
12454
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
12455
|
-
* @param indexerName - The name of the indexer to reset documents for.
|
|
12456
|
-
* @param options - Additional optional arguments.
|
|
12457
|
-
*/
|
|
12458
|
-
async resetDocuments(indexerName, options = {}) {
|
|
12459
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
|
|
12460
|
-
try {
|
|
12461
|
-
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
12462
|
-
documentKeys: updatedOptions.documentKeys,
|
|
12463
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
12464
|
-
} }));
|
|
12465
|
-
}
|
|
12466
|
-
catch (e) {
|
|
12467
|
-
span.setStatus({
|
|
12468
|
-
status: "error",
|
|
12469
|
-
error: e.message,
|
|
12470
|
-
});
|
|
12471
|
-
throw e;
|
|
12472
|
-
}
|
|
12473
|
-
finally {
|
|
12474
|
-
span.end();
|
|
12475
|
-
}
|
|
12476
|
-
}
|
|
12477
|
-
/**
|
|
12478
|
-
* Reset an existing skillset in a search service.
|
|
12479
|
-
* @param skillsetName - The name of the skillset to reset.
|
|
12480
|
-
* @param skillNames - The names of skills to reset.
|
|
12481
|
-
* @param options - The options parameters.
|
|
12482
|
-
*/
|
|
12483
|
-
async resetSkills(skillsetName, options = {}) {
|
|
12484
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
|
|
12485
|
-
try {
|
|
12486
|
-
await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
|
|
12487
|
-
}
|
|
12488
|
-
catch (e) {
|
|
12489
|
-
span.setStatus({
|
|
12490
|
-
status: "error",
|
|
12491
|
-
error: e.message,
|
|
12492
|
-
});
|
|
12493
|
-
throw e;
|
|
12494
|
-
}
|
|
12495
|
-
finally {
|
|
12496
|
-
span.end();
|
|
12497
|
-
}
|
|
12498
|
-
}
|
|
12499
11501
|
}
|
|
12500
11502
|
|
|
12501
11503
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -12552,266 +11554,12 @@ function odata(strings, ...values) {
|
|
|
12552
11554
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
12553
11555
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
12554
11556
|
*/
|
|
12555
|
-
/** Known values of {@link
|
|
12556
|
-
var
|
|
12557
|
-
(function (
|
|
12558
|
-
/** Api Version '2023-
|
|
12559
|
-
|
|
12560
|
-
})(
|
|
12561
|
-
/** Known values of {@link SemanticErrorHandling} that the service accepts. */
|
|
12562
|
-
var KnownSemanticErrorHandling;
|
|
12563
|
-
(function (KnownSemanticErrorHandling) {
|
|
12564
|
-
/** If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. */
|
|
12565
|
-
KnownSemanticErrorHandling["Partial"] = "partial";
|
|
12566
|
-
/** If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */
|
|
12567
|
-
KnownSemanticErrorHandling["Fail"] = "fail";
|
|
12568
|
-
})(KnownSemanticErrorHandling || (KnownSemanticErrorHandling = {}));
|
|
12569
|
-
/** Known values of {@link QueryDebugMode} that the service accepts. */
|
|
12570
|
-
var KnownQueryDebugMode;
|
|
12571
|
-
(function (KnownQueryDebugMode) {
|
|
12572
|
-
/** No query debugging information will be returned. */
|
|
12573
|
-
KnownQueryDebugMode["Disabled"] = "disabled";
|
|
12574
|
-
/** Allows the user to further explore their Semantic search results. */
|
|
12575
|
-
KnownQueryDebugMode["Semantic"] = "semantic";
|
|
12576
|
-
})(KnownQueryDebugMode || (KnownQueryDebugMode = {}));
|
|
12577
|
-
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
12578
|
-
exports.KnownQueryLanguage = void 0;
|
|
12579
|
-
(function (KnownQueryLanguage) {
|
|
12580
|
-
/** Query language not specified. */
|
|
12581
|
-
KnownQueryLanguage["None"] = "none";
|
|
12582
|
-
/** Query language value for English (United States). */
|
|
12583
|
-
KnownQueryLanguage["EnUs"] = "en-us";
|
|
12584
|
-
/** Query language value for English (Great Britain). */
|
|
12585
|
-
KnownQueryLanguage["EnGb"] = "en-gb";
|
|
12586
|
-
/** Query language value for English (India). */
|
|
12587
|
-
KnownQueryLanguage["EnIn"] = "en-in";
|
|
12588
|
-
/** Query language value for English (Canada). */
|
|
12589
|
-
KnownQueryLanguage["EnCa"] = "en-ca";
|
|
12590
|
-
/** Query language value for English (Australia). */
|
|
12591
|
-
KnownQueryLanguage["EnAu"] = "en-au";
|
|
12592
|
-
/** Query language value for French (France). */
|
|
12593
|
-
KnownQueryLanguage["FrFr"] = "fr-fr";
|
|
12594
|
-
/** Query language value for French (Canada). */
|
|
12595
|
-
KnownQueryLanguage["FrCa"] = "fr-ca";
|
|
12596
|
-
/** Query language value for German (Germany). */
|
|
12597
|
-
KnownQueryLanguage["DeDe"] = "de-de";
|
|
12598
|
-
/** Query language value for Spanish (Spain). */
|
|
12599
|
-
KnownQueryLanguage["EsEs"] = "es-es";
|
|
12600
|
-
/** Query language value for Spanish (Mexico). */
|
|
12601
|
-
KnownQueryLanguage["EsMx"] = "es-mx";
|
|
12602
|
-
/** Query language value for Chinese (China). */
|
|
12603
|
-
KnownQueryLanguage["ZhCn"] = "zh-cn";
|
|
12604
|
-
/** Query language value for Chinese (Taiwan). */
|
|
12605
|
-
KnownQueryLanguage["ZhTw"] = "zh-tw";
|
|
12606
|
-
/** Query language value for Portuguese (Brazil). */
|
|
12607
|
-
KnownQueryLanguage["PtBr"] = "pt-br";
|
|
12608
|
-
/** Query language value for Portuguese (Portugal). */
|
|
12609
|
-
KnownQueryLanguage["PtPt"] = "pt-pt";
|
|
12610
|
-
/** Query language value for Italian (Italy). */
|
|
12611
|
-
KnownQueryLanguage["ItIt"] = "it-it";
|
|
12612
|
-
/** Query language value for Japanese (Japan). */
|
|
12613
|
-
KnownQueryLanguage["JaJp"] = "ja-jp";
|
|
12614
|
-
/** Query language value for Korean (Korea). */
|
|
12615
|
-
KnownQueryLanguage["KoKr"] = "ko-kr";
|
|
12616
|
-
/** Query language value for Russian (Russia). */
|
|
12617
|
-
KnownQueryLanguage["RuRu"] = "ru-ru";
|
|
12618
|
-
/** Query language value for Czech (Czech Republic). */
|
|
12619
|
-
KnownQueryLanguage["CsCz"] = "cs-cz";
|
|
12620
|
-
/** Query language value for Dutch (Belgium). */
|
|
12621
|
-
KnownQueryLanguage["NlBe"] = "nl-be";
|
|
12622
|
-
/** Query language value for Dutch (Netherlands). */
|
|
12623
|
-
KnownQueryLanguage["NlNl"] = "nl-nl";
|
|
12624
|
-
/** Query language value for Hungarian (Hungary). */
|
|
12625
|
-
KnownQueryLanguage["HuHu"] = "hu-hu";
|
|
12626
|
-
/** Query language value for Polish (Poland). */
|
|
12627
|
-
KnownQueryLanguage["PlPl"] = "pl-pl";
|
|
12628
|
-
/** Query language value for Swedish (Sweden). */
|
|
12629
|
-
KnownQueryLanguage["SvSe"] = "sv-se";
|
|
12630
|
-
/** Query language value for Turkish (Turkey). */
|
|
12631
|
-
KnownQueryLanguage["TrTr"] = "tr-tr";
|
|
12632
|
-
/** Query language value for Hindi (India). */
|
|
12633
|
-
KnownQueryLanguage["HiIn"] = "hi-in";
|
|
12634
|
-
/** Query language value for Arabic (Saudi Arabia). */
|
|
12635
|
-
KnownQueryLanguage["ArSa"] = "ar-sa";
|
|
12636
|
-
/** Query language value for Arabic (Egypt). */
|
|
12637
|
-
KnownQueryLanguage["ArEg"] = "ar-eg";
|
|
12638
|
-
/** Query language value for Arabic (Morocco). */
|
|
12639
|
-
KnownQueryLanguage["ArMa"] = "ar-ma";
|
|
12640
|
-
/** Query language value for Arabic (Kuwait). */
|
|
12641
|
-
KnownQueryLanguage["ArKw"] = "ar-kw";
|
|
12642
|
-
/** Query language value for Arabic (Jordan). */
|
|
12643
|
-
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
12644
|
-
/** Query language value for Danish (Denmark). */
|
|
12645
|
-
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
12646
|
-
/** Query language value for Norwegian (Norway). */
|
|
12647
|
-
KnownQueryLanguage["NoNo"] = "no-no";
|
|
12648
|
-
/** Query language value for Bulgarian (Bulgaria). */
|
|
12649
|
-
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
12650
|
-
/** Query language value for Croatian (Croatia). */
|
|
12651
|
-
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
12652
|
-
/** Query language value for Croatian (Bosnia and Herzegovina). */
|
|
12653
|
-
KnownQueryLanguage["HrBa"] = "hr-ba";
|
|
12654
|
-
/** Query language value for Malay (Malaysia). */
|
|
12655
|
-
KnownQueryLanguage["MsMy"] = "ms-my";
|
|
12656
|
-
/** Query language value for Malay (Brunei Darussalam). */
|
|
12657
|
-
KnownQueryLanguage["MsBn"] = "ms-bn";
|
|
12658
|
-
/** Query language value for Slovenian (Slovenia). */
|
|
12659
|
-
KnownQueryLanguage["SlSl"] = "sl-sl";
|
|
12660
|
-
/** Query language value for Tamil (India). */
|
|
12661
|
-
KnownQueryLanguage["TaIn"] = "ta-in";
|
|
12662
|
-
/** Query language value for Vietnamese (Viet Nam). */
|
|
12663
|
-
KnownQueryLanguage["ViVn"] = "vi-vn";
|
|
12664
|
-
/** Query language value for Greek (Greece). */
|
|
12665
|
-
KnownQueryLanguage["ElGr"] = "el-gr";
|
|
12666
|
-
/** Query language value for Romanian (Romania). */
|
|
12667
|
-
KnownQueryLanguage["RoRo"] = "ro-ro";
|
|
12668
|
-
/** Query language value for Icelandic (Iceland). */
|
|
12669
|
-
KnownQueryLanguage["IsIs"] = "is-is";
|
|
12670
|
-
/** Query language value for Indonesian (Indonesia). */
|
|
12671
|
-
KnownQueryLanguage["IdId"] = "id-id";
|
|
12672
|
-
/** Query language value for Thai (Thailand). */
|
|
12673
|
-
KnownQueryLanguage["ThTh"] = "th-th";
|
|
12674
|
-
/** Query language value for Lithuanian (Lithuania). */
|
|
12675
|
-
KnownQueryLanguage["LtLt"] = "lt-lt";
|
|
12676
|
-
/** Query language value for Ukrainian (Ukraine). */
|
|
12677
|
-
KnownQueryLanguage["UkUa"] = "uk-ua";
|
|
12678
|
-
/** Query language value for Latvian (Latvia). */
|
|
12679
|
-
KnownQueryLanguage["LvLv"] = "lv-lv";
|
|
12680
|
-
/** Query language value for Estonian (Estonia). */
|
|
12681
|
-
KnownQueryLanguage["EtEe"] = "et-ee";
|
|
12682
|
-
/** Query language value for Catalan (Spain). */
|
|
12683
|
-
KnownQueryLanguage["CaEs"] = "ca-es";
|
|
12684
|
-
/** Query language value for Finnish (Finland). */
|
|
12685
|
-
KnownQueryLanguage["FiFi"] = "fi-fi";
|
|
12686
|
-
/** Query language value for Serbian (Bosnia and Herzegovina). */
|
|
12687
|
-
KnownQueryLanguage["SrBa"] = "sr-ba";
|
|
12688
|
-
/** Query language value for Serbian (Montenegro). */
|
|
12689
|
-
KnownQueryLanguage["SrMe"] = "sr-me";
|
|
12690
|
-
/** Query language value for Serbian (Serbia). */
|
|
12691
|
-
KnownQueryLanguage["SrRs"] = "sr-rs";
|
|
12692
|
-
/** Query language value for Slovak (Slovakia). */
|
|
12693
|
-
KnownQueryLanguage["SkSk"] = "sk-sk";
|
|
12694
|
-
/** Query language value for Norwegian (Norway). */
|
|
12695
|
-
KnownQueryLanguage["NbNo"] = "nb-no";
|
|
12696
|
-
/** Query language value for Armenian (Armenia). */
|
|
12697
|
-
KnownQueryLanguage["HyAm"] = "hy-am";
|
|
12698
|
-
/** Query language value for Bengali (India). */
|
|
12699
|
-
KnownQueryLanguage["BnIn"] = "bn-in";
|
|
12700
|
-
/** Query language value for Basque (Spain). */
|
|
12701
|
-
KnownQueryLanguage["EuEs"] = "eu-es";
|
|
12702
|
-
/** Query language value for Galician (Spain). */
|
|
12703
|
-
KnownQueryLanguage["GlEs"] = "gl-es";
|
|
12704
|
-
/** Query language value for Gujarati (India). */
|
|
12705
|
-
KnownQueryLanguage["GuIn"] = "gu-in";
|
|
12706
|
-
/** Query language value for Hebrew (Israel). */
|
|
12707
|
-
KnownQueryLanguage["HeIl"] = "he-il";
|
|
12708
|
-
/** Query language value for Irish (Ireland). */
|
|
12709
|
-
KnownQueryLanguage["GaIe"] = "ga-ie";
|
|
12710
|
-
/** Query language value for Kannada (India). */
|
|
12711
|
-
KnownQueryLanguage["KnIn"] = "kn-in";
|
|
12712
|
-
/** Query language value for Malayalam (India). */
|
|
12713
|
-
KnownQueryLanguage["MlIn"] = "ml-in";
|
|
12714
|
-
/** Query language value for Marathi (India). */
|
|
12715
|
-
KnownQueryLanguage["MrIn"] = "mr-in";
|
|
12716
|
-
/** Query language value for Persian (U.A.E.). */
|
|
12717
|
-
KnownQueryLanguage["FaAe"] = "fa-ae";
|
|
12718
|
-
/** Query language value for Punjabi (India). */
|
|
12719
|
-
KnownQueryLanguage["PaIn"] = "pa-in";
|
|
12720
|
-
/** Query language value for Telugu (India). */
|
|
12721
|
-
KnownQueryLanguage["TeIn"] = "te-in";
|
|
12722
|
-
/** Query language value for Urdu (Pakistan). */
|
|
12723
|
-
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
12724
|
-
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
12725
|
-
/** Known values of {@link Speller} that the service accepts. */
|
|
12726
|
-
exports.KnownSpeller = void 0;
|
|
12727
|
-
(function (KnownSpeller) {
|
|
12728
|
-
/** Speller not enabled. */
|
|
12729
|
-
KnownSpeller["None"] = "none";
|
|
12730
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
12731
|
-
KnownSpeller["Lexicon"] = "lexicon";
|
|
12732
|
-
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
12733
|
-
/** Known values of {@link Answers} that the service accepts. */
|
|
12734
|
-
exports.KnownAnswers = void 0;
|
|
12735
|
-
(function (KnownAnswers) {
|
|
12736
|
-
/** Do not return answers for the query. */
|
|
12737
|
-
KnownAnswers["None"] = "none";
|
|
12738
|
-
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
12739
|
-
KnownAnswers["Extractive"] = "extractive";
|
|
12740
|
-
})(exports.KnownAnswers || (exports.KnownAnswers = {}));
|
|
12741
|
-
/** Known values of {@link Captions} that the service accepts. */
|
|
12742
|
-
var KnownCaptions;
|
|
12743
|
-
(function (KnownCaptions) {
|
|
12744
|
-
/** Do not return captions for the query. */
|
|
12745
|
-
KnownCaptions["None"] = "none";
|
|
12746
|
-
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
12747
|
-
KnownCaptions["Extractive"] = "extractive";
|
|
12748
|
-
})(KnownCaptions || (KnownCaptions = {}));
|
|
12749
|
-
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
12750
|
-
exports.KnownQuerySpellerType = void 0;
|
|
12751
|
-
(function (KnownQuerySpellerType) {
|
|
12752
|
-
/** Speller not enabled. */
|
|
12753
|
-
KnownQuerySpellerType["None"] = "none";
|
|
12754
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
12755
|
-
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
12756
|
-
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
12757
|
-
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
12758
|
-
exports.KnownQueryAnswerType = void 0;
|
|
12759
|
-
(function (KnownQueryAnswerType) {
|
|
12760
|
-
/** Do not return answers for the query. */
|
|
12761
|
-
KnownQueryAnswerType["None"] = "none";
|
|
12762
|
-
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
12763
|
-
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
12764
|
-
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
12765
|
-
/** Known values of {@link QueryCaptionType} that the service accepts. */
|
|
12766
|
-
exports.KnownQueryCaptionType = void 0;
|
|
12767
|
-
(function (KnownQueryCaptionType) {
|
|
12768
|
-
/** Do not return captions for the query. */
|
|
12769
|
-
KnownQueryCaptionType["None"] = "none";
|
|
12770
|
-
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
12771
|
-
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
12772
|
-
})(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
|
|
12773
|
-
/** Known values of {@link SemanticPartialResponseReason} that the service accepts. */
|
|
12774
|
-
var KnownSemanticPartialResponseReason;
|
|
12775
|
-
(function (KnownSemanticPartialResponseReason) {
|
|
12776
|
-
/** If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. */
|
|
12777
|
-
KnownSemanticPartialResponseReason["MaxWaitExceeded"] = "maxWaitExceeded";
|
|
12778
|
-
/** The request was throttled. Only the base results were returned. */
|
|
12779
|
-
KnownSemanticPartialResponseReason["CapacityOverloaded"] = "capacityOverloaded";
|
|
12780
|
-
/** At least one step of the semantic process failed. */
|
|
12781
|
-
KnownSemanticPartialResponseReason["Transient"] = "transient";
|
|
12782
|
-
})(KnownSemanticPartialResponseReason || (KnownSemanticPartialResponseReason = {}));
|
|
12783
|
-
/** Known values of {@link SemanticPartialResponseType} that the service accepts. */
|
|
12784
|
-
var KnownSemanticPartialResponseType;
|
|
12785
|
-
(function (KnownSemanticPartialResponseType) {
|
|
12786
|
-
/** Results without any semantic enrichment or reranking. */
|
|
12787
|
-
KnownSemanticPartialResponseType["BaseResults"] = "baseResults";
|
|
12788
|
-
/** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */
|
|
12789
|
-
KnownSemanticPartialResponseType["RerankedResults"] = "rerankedResults";
|
|
12790
|
-
})(KnownSemanticPartialResponseType || (KnownSemanticPartialResponseType = {}));
|
|
12791
|
-
/** Known values of {@link SemanticFieldState} that the service accepts. */
|
|
12792
|
-
var KnownSemanticFieldState;
|
|
12793
|
-
(function (KnownSemanticFieldState) {
|
|
12794
|
-
/** The field was fully used for semantic enrichment. */
|
|
12795
|
-
KnownSemanticFieldState["Used"] = "used";
|
|
12796
|
-
/** The field was not used for semantic enrichment. */
|
|
12797
|
-
KnownSemanticFieldState["Unused"] = "unused";
|
|
12798
|
-
/** The field was partially used for semantic enrichment. */
|
|
12799
|
-
KnownSemanticFieldState["Partial"] = "partial";
|
|
12800
|
-
})(KnownSemanticFieldState || (KnownSemanticFieldState = {}));
|
|
12801
|
-
|
|
12802
|
-
/*
|
|
12803
|
-
* Copyright (c) Microsoft Corporation.
|
|
12804
|
-
* Licensed under the MIT License.
|
|
12805
|
-
*
|
|
12806
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
12807
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
12808
|
-
*/
|
|
12809
|
-
/** Known values of {@link ApiVersion20230701Preview} that the service accepts. */
|
|
12810
|
-
var KnownApiVersion20230701Preview;
|
|
12811
|
-
(function (KnownApiVersion20230701Preview) {
|
|
12812
|
-
/** Api Version '2023-07-01-Preview' */
|
|
12813
|
-
KnownApiVersion20230701Preview["TwoThousandTwentyThree0701Preview"] = "2023-07-01-Preview";
|
|
12814
|
-
})(KnownApiVersion20230701Preview || (KnownApiVersion20230701Preview = {}));
|
|
11557
|
+
/** Known values of {@link ApiVersion20231101} that the service accepts. */
|
|
11558
|
+
var KnownApiVersion20231101;
|
|
11559
|
+
(function (KnownApiVersion20231101) {
|
|
11560
|
+
/** Api Version '2023-11-01' */
|
|
11561
|
+
KnownApiVersion20231101["TwoThousandTwentyThree1101"] = "2023-11-01";
|
|
11562
|
+
})(KnownApiVersion20231101 || (KnownApiVersion20231101 = {}));
|
|
12815
11563
|
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
12816
11564
|
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
12817
11565
|
(function (KnownSearchIndexerDataSourceType) {
|
|
@@ -12839,9 +11587,9 @@ exports.KnownBlobIndexerParsingMode = void 0;
|
|
|
12839
11587
|
KnownBlobIndexerParsingMode["DelimitedText"] = "delimitedText";
|
|
12840
11588
|
/** Set to json to extract structured content from JSON files. */
|
|
12841
11589
|
KnownBlobIndexerParsingMode["Json"] = "json";
|
|
12842
|
-
/** Set to jsonArray to extract individual elements of a JSON array as separate documents
|
|
11590
|
+
/** Set to jsonArray to extract individual elements of a JSON array as separate documents. */
|
|
12843
11591
|
KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
|
|
12844
|
-
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents
|
|
11592
|
+
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */
|
|
12845
11593
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
12846
11594
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
12847
11595
|
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
@@ -12875,25 +11623,11 @@ exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
|
|
|
12875
11623
|
/** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */
|
|
12876
11624
|
var KnownIndexerExecutionEnvironment;
|
|
12877
11625
|
(function (KnownIndexerExecutionEnvironment) {
|
|
12878
|
-
/** Indicates that
|
|
11626
|
+
/** Indicates that the search service can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */
|
|
12879
11627
|
KnownIndexerExecutionEnvironment["Standard"] = "standard";
|
|
12880
11628
|
/** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
|
|
12881
11629
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
12882
11630
|
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
12883
|
-
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
12884
|
-
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
12885
|
-
(function (KnownIndexerExecutionStatusDetail) {
|
|
12886
|
-
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
12887
|
-
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
12888
|
-
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
12889
|
-
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
12890
|
-
exports.KnownIndexingMode = void 0;
|
|
12891
|
-
(function (KnownIndexingMode) {
|
|
12892
|
-
/** The indexer is indexing all documents in the datasource. */
|
|
12893
|
-
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
12894
|
-
/** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
|
|
12895
|
-
KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
|
|
12896
|
-
})(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
|
|
12897
11631
|
/** Known values of {@link SearchFieldDataType} that the service accepts. */
|
|
12898
11632
|
var KnownSearchFieldDataType;
|
|
12899
11633
|
(function (KnownSearchFieldDataType) {
|
|
@@ -12907,7 +11641,7 @@ var KnownSearchFieldDataType;
|
|
|
12907
11641
|
KnownSearchFieldDataType["Double"] = "Edm.Double";
|
|
12908
11642
|
/** Indicates that a field contains a Boolean value (true or false). */
|
|
12909
11643
|
KnownSearchFieldDataType["Boolean"] = "Edm.Boolean";
|
|
12910
|
-
/** Indicates that a field contains a date
|
|
11644
|
+
/** Indicates that a field contains a date\/time value, including timezone information. */
|
|
12911
11645
|
KnownSearchFieldDataType["DateTimeOffset"] = "Edm.DateTimeOffset";
|
|
12912
11646
|
/** Indicates that a field contains a geo-location in terms of longitude and latitude. */
|
|
12913
11647
|
KnownSearchFieldDataType["GeographyPoint"] = "Edm.GeographyPoint";
|
|
@@ -12917,7 +11651,7 @@ var KnownSearchFieldDataType;
|
|
|
12917
11651
|
KnownSearchFieldDataType["Single"] = "Edm.Single";
|
|
12918
11652
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
12919
11653
|
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
12920
|
-
|
|
11654
|
+
var KnownLexicalAnalyzerName;
|
|
12921
11655
|
(function (KnownLexicalAnalyzerName) {
|
|
12922
11656
|
/** Microsoft analyzer for Arabic. */
|
|
12923
11657
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -13093,116 +11827,35 @@ exports.KnownLexicalAnalyzerName = void 0;
|
|
|
13093
11827
|
KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
|
|
13094
11828
|
/** Standard Lucene analyzer. */
|
|
13095
11829
|
KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
|
|
13096
|
-
/** Standard ASCII Folding Lucene analyzer. See https
|
|
11830
|
+
/** Standard ASCII Folding Lucene analyzer. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */
|
|
13097
11831
|
KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
|
|
13098
|
-
/** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http
|
|
11832
|
+
/** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordAnalyzer.html */
|
|
13099
11833
|
KnownLexicalAnalyzerName["Keyword"] = "keyword";
|
|
13100
|
-
/** Flexibly separates text into terms via a regular expression pattern. See http
|
|
11834
|
+
/** Flexibly separates text into terms via a regular expression pattern. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/PatternAnalyzer.html */
|
|
13101
11835
|
KnownLexicalAnalyzerName["Pattern"] = "pattern";
|
|
13102
|
-
/** Divides text at non-letters and converts them to lower case. See http
|
|
11836
|
+
/** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/SimpleAnalyzer.html */
|
|
13103
11837
|
KnownLexicalAnalyzerName["Simple"] = "simple";
|
|
13104
|
-
/** Divides text at non-letters; Applies the lowercase and stopword token filters. See http
|
|
11838
|
+
/** Divides text at non-letters; Applies the lowercase and stopword token filters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopAnalyzer.html */
|
|
13105
11839
|
KnownLexicalAnalyzerName["Stop"] = "stop";
|
|
13106
|
-
/** An analyzer that uses the whitespace tokenizer. See http
|
|
11840
|
+
/** An analyzer that uses the whitespace tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceAnalyzer.html */
|
|
13107
11841
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
13108
|
-
})(
|
|
13109
|
-
/** Known values of {@link
|
|
13110
|
-
|
|
13111
|
-
(function (
|
|
13112
|
-
/**
|
|
13113
|
-
|
|
13114
|
-
/**
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
KnownLexicalNormalizerName["Lowercase"] = "lowercase";
|
|
13118
|
-
/** Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
|
|
13119
|
-
KnownLexicalNormalizerName["Standard"] = "standard";
|
|
13120
|
-
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
13121
|
-
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
13122
|
-
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
13123
|
-
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
13124
|
-
exports.KnownTokenFilterName = void 0;
|
|
13125
|
-
(function (KnownTokenFilterName) {
|
|
13126
|
-
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */
|
|
13127
|
-
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
13128
|
-
/** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */
|
|
13129
|
-
KnownTokenFilterName["Apostrophe"] = "apostrophe";
|
|
13130
|
-
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
|
|
13131
|
-
KnownTokenFilterName["AsciiFolding"] = "asciifolding";
|
|
13132
|
-
/** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */
|
|
13133
|
-
KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
|
|
13134
|
-
/** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html */
|
|
13135
|
-
KnownTokenFilterName["CjkWidth"] = "cjk_width";
|
|
13136
|
-
/** Removes English possessives, and dots from acronyms. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html */
|
|
13137
|
-
KnownTokenFilterName["Classic"] = "classic";
|
|
13138
|
-
/** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html */
|
|
13139
|
-
KnownTokenFilterName["CommonGram"] = "common_grams";
|
|
13140
|
-
/** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html */
|
|
13141
|
-
KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
|
|
13142
|
-
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
|
|
13143
|
-
KnownTokenFilterName["Elision"] = "elision";
|
|
13144
|
-
/** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html */
|
|
13145
|
-
KnownTokenFilterName["GermanNormalization"] = "german_normalization";
|
|
13146
|
-
/** Normalizes text in Hindi to remove some differences in spelling variations. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html */
|
|
13147
|
-
KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
|
|
13148
|
-
/** Normalizes the Unicode representation of text in Indian languages. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html */
|
|
13149
|
-
KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
|
|
13150
|
-
/** Emits each incoming token twice, once as keyword and once as non-keyword. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html */
|
|
13151
|
-
KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
|
|
13152
|
-
/** A high-performance kstem filter for English. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html */
|
|
13153
|
-
KnownTokenFilterName["KStem"] = "kstem";
|
|
13154
|
-
/** Removes words that are too long or too short. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html */
|
|
13155
|
-
KnownTokenFilterName["Length"] = "length";
|
|
13156
|
-
/** Limits the number of tokens while indexing. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html */
|
|
13157
|
-
KnownTokenFilterName["Limit"] = "limit";
|
|
13158
|
-
/** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
|
|
13159
|
-
KnownTokenFilterName["Lowercase"] = "lowercase";
|
|
13160
|
-
/** Generates n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html */
|
|
13161
|
-
KnownTokenFilterName["NGram"] = "nGram_v2";
|
|
13162
|
-
/** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */
|
|
13163
|
-
KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
|
|
13164
|
-
/** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */
|
|
13165
|
-
KnownTokenFilterName["Phonetic"] = "phonetic";
|
|
13166
|
-
/** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */
|
|
13167
|
-
KnownTokenFilterName["PorterStem"] = "porter_stem";
|
|
13168
|
-
/** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
|
|
13169
|
-
KnownTokenFilterName["Reverse"] = "reverse";
|
|
13170
|
-
/** Normalizes use of the interchangeable Scandinavian characters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html */
|
|
13171
|
-
KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
|
|
13172
|
-
/** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html */
|
|
13173
|
-
KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
|
|
13174
|
-
/** Creates combinations of tokens as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html */
|
|
13175
|
-
KnownTokenFilterName["Shingle"] = "shingle";
|
|
13176
|
-
/** A filter that stems words using a Snowball-generated stemmer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html */
|
|
13177
|
-
KnownTokenFilterName["Snowball"] = "snowball";
|
|
13178
|
-
/** Normalizes the Unicode representation of Sorani text. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html */
|
|
13179
|
-
KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
|
|
13180
|
-
/** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */
|
|
13181
|
-
KnownTokenFilterName["Stemmer"] = "stemmer";
|
|
13182
|
-
/** Removes stop words from a token stream. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html */
|
|
13183
|
-
KnownTokenFilterName["Stopwords"] = "stopwords";
|
|
13184
|
-
/** Trims leading and trailing whitespace from tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html */
|
|
13185
|
-
KnownTokenFilterName["Trim"] = "trim";
|
|
13186
|
-
/** Truncates the terms to a specific length. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html */
|
|
13187
|
-
KnownTokenFilterName["Truncate"] = "truncate";
|
|
13188
|
-
/** Filters out tokens with same text as the previous token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html */
|
|
13189
|
-
KnownTokenFilterName["Unique"] = "unique";
|
|
13190
|
-
/** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
13191
|
-
KnownTokenFilterName["Uppercase"] = "uppercase";
|
|
13192
|
-
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
13193
|
-
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
13194
|
-
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
13195
|
-
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
13196
|
-
exports.KnownCharFilterName = void 0;
|
|
13197
|
-
(function (KnownCharFilterName) {
|
|
13198
|
-
/** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */
|
|
13199
|
-
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
13200
|
-
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
11842
|
+
})(KnownLexicalAnalyzerName || (KnownLexicalAnalyzerName = {}));
|
|
11843
|
+
/** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
|
|
11844
|
+
var KnownVectorSearchAlgorithmKind;
|
|
11845
|
+
(function (KnownVectorSearchAlgorithmKind) {
|
|
11846
|
+
/** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
|
|
11847
|
+
KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
|
|
11848
|
+
/** Exhaustive KNN algorithm which will perform brute-force search. */
|
|
11849
|
+
KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
|
|
11850
|
+
})(KnownVectorSearchAlgorithmKind || (KnownVectorSearchAlgorithmKind = {}));
|
|
13201
11851
|
/** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
|
|
13202
11852
|
var KnownVectorSearchAlgorithmMetric;
|
|
13203
11853
|
(function (KnownVectorSearchAlgorithmMetric) {
|
|
11854
|
+
/** Cosine */
|
|
13204
11855
|
KnownVectorSearchAlgorithmMetric["Cosine"] = "cosine";
|
|
11856
|
+
/** Euclidean */
|
|
13205
11857
|
KnownVectorSearchAlgorithmMetric["Euclidean"] = "euclidean";
|
|
11858
|
+
/** DotProduct */
|
|
13206
11859
|
KnownVectorSearchAlgorithmMetric["DotProduct"] = "dotProduct";
|
|
13207
11860
|
})(KnownVectorSearchAlgorithmMetric || (KnownVectorSearchAlgorithmMetric = {}));
|
|
13208
11861
|
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
@@ -13585,18 +12238,6 @@ exports.KnownOcrSkillLanguage = void 0;
|
|
|
13585
12238
|
/** Unknown (All) */
|
|
13586
12239
|
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
13587
12240
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
13588
|
-
/** Known values of {@link LineEnding} that the service accepts. */
|
|
13589
|
-
exports.KnownLineEnding = void 0;
|
|
13590
|
-
(function (KnownLineEnding) {
|
|
13591
|
-
/** Lines are separated by a single space character. */
|
|
13592
|
-
KnownLineEnding["Space"] = "space";
|
|
13593
|
-
/** Lines are separated by a carriage return ('\r') character. */
|
|
13594
|
-
KnownLineEnding["CarriageReturn"] = "carriageReturn";
|
|
13595
|
-
/** Lines are separated by a single line feed ('\n') character. */
|
|
13596
|
-
KnownLineEnding["LineFeed"] = "lineFeed";
|
|
13597
|
-
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
13598
|
-
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
13599
|
-
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
13600
12241
|
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
13601
12242
|
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
13602
12243
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
@@ -13834,16 +12475,22 @@ exports.KnownSentimentSkillLanguage = void 0;
|
|
|
13834
12475
|
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
13835
12476
|
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
13836
12477
|
/** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
|
|
13837
|
-
|
|
12478
|
+
var KnownPIIDetectionSkillMaskingMode;
|
|
13838
12479
|
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
13839
12480
|
/** No masking occurs and the maskedText output will not be returned. */
|
|
13840
12481
|
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
13841
12482
|
/** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */
|
|
13842
12483
|
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
13843
|
-
})(
|
|
12484
|
+
})(KnownPIIDetectionSkillMaskingMode || (KnownPIIDetectionSkillMaskingMode = {}));
|
|
13844
12485
|
/** Known values of {@link SplitSkillLanguage} that the service accepts. */
|
|
13845
12486
|
exports.KnownSplitSkillLanguage = void 0;
|
|
13846
12487
|
(function (KnownSplitSkillLanguage) {
|
|
12488
|
+
/** Amharic */
|
|
12489
|
+
KnownSplitSkillLanguage["Am"] = "am";
|
|
12490
|
+
/** Bosnian */
|
|
12491
|
+
KnownSplitSkillLanguage["Bs"] = "bs";
|
|
12492
|
+
/** Czech */
|
|
12493
|
+
KnownSplitSkillLanguage["Cs"] = "cs";
|
|
13847
12494
|
/** Danish */
|
|
13848
12495
|
KnownSplitSkillLanguage["Da"] = "da";
|
|
13849
12496
|
/** German */
|
|
@@ -13852,16 +12499,58 @@ exports.KnownSplitSkillLanguage = void 0;
|
|
|
13852
12499
|
KnownSplitSkillLanguage["En"] = "en";
|
|
13853
12500
|
/** Spanish */
|
|
13854
12501
|
KnownSplitSkillLanguage["Es"] = "es";
|
|
12502
|
+
/** Estonian */
|
|
12503
|
+
KnownSplitSkillLanguage["Et"] = "et";
|
|
13855
12504
|
/** Finnish */
|
|
13856
12505
|
KnownSplitSkillLanguage["Fi"] = "fi";
|
|
13857
12506
|
/** French */
|
|
13858
12507
|
KnownSplitSkillLanguage["Fr"] = "fr";
|
|
12508
|
+
/** Hebrew */
|
|
12509
|
+
KnownSplitSkillLanguage["He"] = "he";
|
|
12510
|
+
/** Hindi */
|
|
12511
|
+
KnownSplitSkillLanguage["Hi"] = "hi";
|
|
12512
|
+
/** Croatian */
|
|
12513
|
+
KnownSplitSkillLanguage["Hr"] = "hr";
|
|
12514
|
+
/** Hungarian */
|
|
12515
|
+
KnownSplitSkillLanguage["Hu"] = "hu";
|
|
12516
|
+
/** Indonesian */
|
|
12517
|
+
KnownSplitSkillLanguage["Id"] = "id";
|
|
12518
|
+
/** Icelandic */
|
|
12519
|
+
KnownSplitSkillLanguage["Is"] = "is";
|
|
13859
12520
|
/** Italian */
|
|
13860
12521
|
KnownSplitSkillLanguage["It"] = "it";
|
|
12522
|
+
/** Japanese */
|
|
12523
|
+
KnownSplitSkillLanguage["Ja"] = "ja";
|
|
13861
12524
|
/** Korean */
|
|
13862
12525
|
KnownSplitSkillLanguage["Ko"] = "ko";
|
|
13863
|
-
/**
|
|
12526
|
+
/** Latvian */
|
|
12527
|
+
KnownSplitSkillLanguage["Lv"] = "lv";
|
|
12528
|
+
/** Norwegian */
|
|
12529
|
+
KnownSplitSkillLanguage["Nb"] = "nb";
|
|
12530
|
+
/** Dutch */
|
|
12531
|
+
KnownSplitSkillLanguage["Nl"] = "nl";
|
|
12532
|
+
/** Polish */
|
|
12533
|
+
KnownSplitSkillLanguage["Pl"] = "pl";
|
|
12534
|
+
/** Portuguese (Portugal) */
|
|
13864
12535
|
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12536
|
+
/** Portuguese (Brazil) */
|
|
12537
|
+
KnownSplitSkillLanguage["PtBr"] = "pt-br";
|
|
12538
|
+
/** Russian */
|
|
12539
|
+
KnownSplitSkillLanguage["Ru"] = "ru";
|
|
12540
|
+
/** Slovak */
|
|
12541
|
+
KnownSplitSkillLanguage["Sk"] = "sk";
|
|
12542
|
+
/** Slovenian */
|
|
12543
|
+
KnownSplitSkillLanguage["Sl"] = "sl";
|
|
12544
|
+
/** Serbian */
|
|
12545
|
+
KnownSplitSkillLanguage["Sr"] = "sr";
|
|
12546
|
+
/** Swedish */
|
|
12547
|
+
KnownSplitSkillLanguage["Sv"] = "sv";
|
|
12548
|
+
/** Turkish */
|
|
12549
|
+
KnownSplitSkillLanguage["Tr"] = "tr";
|
|
12550
|
+
/** Urdu */
|
|
12551
|
+
KnownSplitSkillLanguage["Ur"] = "ur";
|
|
12552
|
+
/** Chinese (Simplified) */
|
|
12553
|
+
KnownSplitSkillLanguage["Zh"] = "zh";
|
|
13865
12554
|
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
13866
12555
|
/** Known values of {@link TextSplitMode} that the service accepts. */
|
|
13867
12556
|
exports.KnownTextSplitMode = void 0;
|
|
@@ -13960,10 +12649,6 @@ exports.KnownTextTranslationSkillLanguage = void 0;
|
|
|
13960
12649
|
KnownTextTranslationSkillLanguage["Sw"] = "sw";
|
|
13961
12650
|
/** Klingon */
|
|
13962
12651
|
KnownTextTranslationSkillLanguage["Tlh"] = "tlh";
|
|
13963
|
-
/** Klingon (Latin script) */
|
|
13964
|
-
KnownTextTranslationSkillLanguage["TlhLatn"] = "tlh-Latn";
|
|
13965
|
-
/** Klingon (Klingon script) */
|
|
13966
|
-
KnownTextTranslationSkillLanguage["TlhPiqd"] = "tlh-Piqd";
|
|
13967
12652
|
/** Korean */
|
|
13968
12653
|
KnownTextTranslationSkillLanguage["Ko"] = "ko";
|
|
13969
12654
|
/** Latvian */
|
|
@@ -13984,10 +12669,6 @@ exports.KnownTextTranslationSkillLanguage = void 0;
|
|
|
13984
12669
|
KnownTextTranslationSkillLanguage["Pl"] = "pl";
|
|
13985
12670
|
/** Portuguese */
|
|
13986
12671
|
KnownTextTranslationSkillLanguage["Pt"] = "pt";
|
|
13987
|
-
/** Portuguese (Brazil) */
|
|
13988
|
-
KnownTextTranslationSkillLanguage["PtBr"] = "pt-br";
|
|
13989
|
-
/** Portuguese (Portugal) */
|
|
13990
|
-
KnownTextTranslationSkillLanguage["PtPT"] = "pt-PT";
|
|
13991
12672
|
/** Queretaro Otomi */
|
|
13992
12673
|
KnownTextTranslationSkillLanguage["Otq"] = "otq";
|
|
13993
12674
|
/** Romanian */
|
|
@@ -14030,47 +12711,115 @@ exports.KnownTextTranslationSkillLanguage = void 0;
|
|
|
14030
12711
|
KnownTextTranslationSkillLanguage["Cy"] = "cy";
|
|
14031
12712
|
/** Yucatec Maya */
|
|
14032
12713
|
KnownTextTranslationSkillLanguage["Yua"] = "yua";
|
|
14033
|
-
/** Irish */
|
|
14034
|
-
KnownTextTranslationSkillLanguage["Ga"] = "ga";
|
|
14035
|
-
/** Kannada */
|
|
14036
|
-
KnownTextTranslationSkillLanguage["Kn"] = "kn";
|
|
14037
|
-
/** Maori */
|
|
14038
|
-
KnownTextTranslationSkillLanguage["Mi"] = "mi";
|
|
14039
|
-
/** Malayalam */
|
|
14040
|
-
KnownTextTranslationSkillLanguage["Ml"] = "ml";
|
|
14041
|
-
/** Punjabi */
|
|
14042
|
-
KnownTextTranslationSkillLanguage["Pa"] = "pa";
|
|
14043
12714
|
})(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
|
|
14044
12715
|
/** Known values of {@link LexicalTokenizerName} that the service accepts. */
|
|
14045
|
-
|
|
12716
|
+
exports.KnownTokenizerNames = void 0;
|
|
14046
12717
|
(function (KnownLexicalTokenizerName) {
|
|
14047
|
-
/** Grammar-based tokenizer that is suitable for processing most European-language documents. See http
|
|
12718
|
+
/** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */
|
|
14048
12719
|
KnownLexicalTokenizerName["Classic"] = "classic";
|
|
14049
|
-
/** Tokenizes the input from an edge into n-grams of the given size(s). See https
|
|
12720
|
+
/** Tokenizes the input from an edge into n-grams of the given size(s). See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenizer.html */
|
|
14050
12721
|
KnownLexicalTokenizerName["EdgeNGram"] = "edgeNGram";
|
|
14051
|
-
/** Emits the entire input as a single token. See http
|
|
12722
|
+
/** Emits the entire input as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordTokenizer.html */
|
|
14052
12723
|
KnownLexicalTokenizerName["Keyword"] = "keyword_v2";
|
|
14053
|
-
/** Divides text at non-letters. See http
|
|
12724
|
+
/** Divides text at non-letters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LetterTokenizer.html */
|
|
14054
12725
|
KnownLexicalTokenizerName["Letter"] = "letter";
|
|
14055
|
-
/** Divides text at non-letters and converts them to lower case. See http
|
|
12726
|
+
/** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseTokenizer.html */
|
|
14056
12727
|
KnownLexicalTokenizerName["Lowercase"] = "lowercase";
|
|
14057
12728
|
/** Divides text using language-specific rules. */
|
|
14058
12729
|
KnownLexicalTokenizerName["MicrosoftLanguageTokenizer"] = "microsoft_language_tokenizer";
|
|
14059
12730
|
/** Divides text using language-specific rules and reduces words to their base forms. */
|
|
14060
12731
|
KnownLexicalTokenizerName["MicrosoftLanguageStemmingTokenizer"] = "microsoft_language_stemming_tokenizer";
|
|
14061
|
-
/** Tokenizes the input into n-grams of the given size(s). See http
|
|
12732
|
+
/** Tokenizes the input into n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenizer.html */
|
|
14062
12733
|
KnownLexicalTokenizerName["NGram"] = "nGram";
|
|
14063
|
-
/** Tokenizer for path-like hierarchies. See http
|
|
12734
|
+
/** Tokenizer for path-like hierarchies. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/path\/PathHierarchyTokenizer.html */
|
|
14064
12735
|
KnownLexicalTokenizerName["PathHierarchy"] = "path_hierarchy_v2";
|
|
14065
|
-
/** Tokenizer that uses regex pattern matching to construct distinct tokens. See http
|
|
12736
|
+
/** Tokenizer that uses regex pattern matching to construct distinct tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/pattern\/PatternTokenizer.html */
|
|
14066
12737
|
KnownLexicalTokenizerName["Pattern"] = "pattern";
|
|
14067
|
-
/** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http
|
|
12738
|
+
/** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/StandardTokenizer.html */
|
|
14068
12739
|
KnownLexicalTokenizerName["Standard"] = "standard_v2";
|
|
14069
|
-
/** Tokenizes urls and emails as one token. See http
|
|
12740
|
+
/** Tokenizes urls and emails as one token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/UAX29URLEmailTokenizer.html */
|
|
14070
12741
|
KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
|
|
14071
|
-
/** Divides text at whitespace. See http
|
|
12742
|
+
/** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
|
|
14072
12743
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
14073
|
-
})(
|
|
12744
|
+
})(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
|
|
12745
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
12746
|
+
exports.KnownTokenFilterNames = void 0;
|
|
12747
|
+
(function (KnownTokenFilterName) {
|
|
12748
|
+
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */
|
|
12749
|
+
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
12750
|
+
/** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */
|
|
12751
|
+
KnownTokenFilterName["Apostrophe"] = "apostrophe";
|
|
12752
|
+
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
|
|
12753
|
+
KnownTokenFilterName["AsciiFolding"] = "asciifolding";
|
|
12754
|
+
/** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */
|
|
12755
|
+
KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
|
|
12756
|
+
/** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */
|
|
12757
|
+
KnownTokenFilterName["CjkWidth"] = "cjk_width";
|
|
12758
|
+
/** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */
|
|
12759
|
+
KnownTokenFilterName["Classic"] = "classic";
|
|
12760
|
+
/** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */
|
|
12761
|
+
KnownTokenFilterName["CommonGram"] = "common_grams";
|
|
12762
|
+
/** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */
|
|
12763
|
+
KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
|
|
12764
|
+
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
|
|
12765
|
+
KnownTokenFilterName["Elision"] = "elision";
|
|
12766
|
+
/** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */
|
|
12767
|
+
KnownTokenFilterName["GermanNormalization"] = "german_normalization";
|
|
12768
|
+
/** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */
|
|
12769
|
+
KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
|
|
12770
|
+
/** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */
|
|
12771
|
+
KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
|
|
12772
|
+
/** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */
|
|
12773
|
+
KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
|
|
12774
|
+
/** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */
|
|
12775
|
+
KnownTokenFilterName["KStem"] = "kstem";
|
|
12776
|
+
/** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */
|
|
12777
|
+
KnownTokenFilterName["Length"] = "length";
|
|
12778
|
+
/** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */
|
|
12779
|
+
KnownTokenFilterName["Limit"] = "limit";
|
|
12780
|
+
/** Normalizes token text to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.htm */
|
|
12781
|
+
KnownTokenFilterName["Lowercase"] = "lowercase";
|
|
12782
|
+
/** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */
|
|
12783
|
+
KnownTokenFilterName["NGram"] = "nGram_v2";
|
|
12784
|
+
/** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
|
|
12785
|
+
KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
|
|
12786
|
+
/** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
|
|
12787
|
+
KnownTokenFilterName["Phonetic"] = "phonetic";
|
|
12788
|
+
/** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
|
|
12789
|
+
KnownTokenFilterName["PorterStem"] = "porter_stem";
|
|
12790
|
+
/** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
|
|
12791
|
+
KnownTokenFilterName["Reverse"] = "reverse";
|
|
12792
|
+
/** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */
|
|
12793
|
+
KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
|
|
12794
|
+
/** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */
|
|
12795
|
+
KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
|
|
12796
|
+
/** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */
|
|
12797
|
+
KnownTokenFilterName["Shingle"] = "shingle";
|
|
12798
|
+
/** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */
|
|
12799
|
+
KnownTokenFilterName["Snowball"] = "snowball";
|
|
12800
|
+
/** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */
|
|
12801
|
+
KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
|
|
12802
|
+
/** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
|
|
12803
|
+
KnownTokenFilterName["Stemmer"] = "stemmer";
|
|
12804
|
+
/** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */
|
|
12805
|
+
KnownTokenFilterName["Stopwords"] = "stopwords";
|
|
12806
|
+
/** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */
|
|
12807
|
+
KnownTokenFilterName["Trim"] = "trim";
|
|
12808
|
+
/** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */
|
|
12809
|
+
KnownTokenFilterName["Truncate"] = "truncate";
|
|
12810
|
+
/** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */
|
|
12811
|
+
KnownTokenFilterName["Unique"] = "unique";
|
|
12812
|
+
/** Normalizes token text to upper case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
12813
|
+
KnownTokenFilterName["Uppercase"] = "uppercase";
|
|
12814
|
+
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
12815
|
+
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
12816
|
+
})(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
|
|
12817
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
12818
|
+
exports.KnownCharFilterNames = void 0;
|
|
12819
|
+
(function (KnownCharFilterName) {
|
|
12820
|
+
/** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */
|
|
12821
|
+
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
12822
|
+
})(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
|
|
14074
12823
|
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
14075
12824
|
exports.KnownRegexFlags = void 0;
|
|
14076
12825
|
(function (KnownRegexFlags) {
|
|
@@ -14093,6 +12842,7 @@ exports.KnownRegexFlags = void 0;
|
|
|
14093
12842
|
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
14094
12843
|
|
|
14095
12844
|
// Copyright (c) Microsoft Corporation.
|
|
12845
|
+
// Licensed under the MIT license.
|
|
14096
12846
|
const readFileAsync = util.promisify(fs__namespace.readFile);
|
|
14097
12847
|
/**
|
|
14098
12848
|
* Helper method to create a SynonymMap object. This is a NodeJS only method.
|