@azure/search-documents 12.0.0-alpha.20230622.2 → 12.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -15
- package/dist/index.js +589 -99
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +50 -6
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +202 -0
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +30 -0
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +3 -0
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +15 -14
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +190 -7
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/searchClient.js +51 -46
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +1 -1
- package/dist-esm/src/searchIndexClient.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 +39 -26
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +5 -4
- package/types/search-documents.d.ts +469 -110
|
@@ -657,9 +657,7 @@ export const FieldMappingFunction = {
|
|
|
657
657
|
nullable: true,
|
|
658
658
|
type: {
|
|
659
659
|
name: "Dictionary",
|
|
660
|
-
value: {
|
|
661
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
662
|
-
}
|
|
660
|
+
value: { type: { name: "any" } }
|
|
663
661
|
}
|
|
664
662
|
}
|
|
665
663
|
}
|
|
@@ -682,6 +680,13 @@ export const SearchIndexerCache = {
|
|
|
682
680
|
type: {
|
|
683
681
|
name: "Boolean"
|
|
684
682
|
}
|
|
683
|
+
},
|
|
684
|
+
identity: {
|
|
685
|
+
serializedName: "identity",
|
|
686
|
+
type: {
|
|
687
|
+
name: "Composite",
|
|
688
|
+
className: "SearchIndexerDataIdentity"
|
|
689
|
+
}
|
|
685
690
|
}
|
|
686
691
|
}
|
|
687
692
|
}
|
|
@@ -1291,6 +1296,13 @@ export const SearchIndexerKnowledgeStore = {
|
|
|
1291
1296
|
}
|
|
1292
1297
|
}
|
|
1293
1298
|
}
|
|
1299
|
+
},
|
|
1300
|
+
identity: {
|
|
1301
|
+
serializedName: "identity",
|
|
1302
|
+
type: {
|
|
1303
|
+
name: "Composite",
|
|
1304
|
+
className: "SearchIndexerDataIdentity"
|
|
1305
|
+
}
|
|
1294
1306
|
}
|
|
1295
1307
|
}
|
|
1296
1308
|
}
|
|
@@ -1632,6 +1644,13 @@ export const SearchIndex = {
|
|
|
1632
1644
|
className: "SemanticSettings"
|
|
1633
1645
|
}
|
|
1634
1646
|
},
|
|
1647
|
+
vectorSearch: {
|
|
1648
|
+
serializedName: "vectorSearch",
|
|
1649
|
+
type: {
|
|
1650
|
+
name: "Composite",
|
|
1651
|
+
className: "VectorSearch"
|
|
1652
|
+
}
|
|
1653
|
+
},
|
|
1635
1654
|
etag: {
|
|
1636
1655
|
serializedName: "@odata\\.etag",
|
|
1637
1656
|
type: {
|
|
@@ -1724,6 +1743,24 @@ export const SearchField = {
|
|
|
1724
1743
|
name: "String"
|
|
1725
1744
|
}
|
|
1726
1745
|
},
|
|
1746
|
+
vectorSearchDimensions: {
|
|
1747
|
+
constraints: {
|
|
1748
|
+
InclusiveMaximum: 2048,
|
|
1749
|
+
InclusiveMinimum: 2
|
|
1750
|
+
},
|
|
1751
|
+
serializedName: "dimensions",
|
|
1752
|
+
nullable: true,
|
|
1753
|
+
type: {
|
|
1754
|
+
name: "Number"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
vectorSearchConfiguration: {
|
|
1758
|
+
serializedName: "vectorSearchConfiguration",
|
|
1759
|
+
nullable: true,
|
|
1760
|
+
type: {
|
|
1761
|
+
name: "String"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1727
1764
|
synonymMaps: {
|
|
1728
1765
|
serializedName: "synonymMaps",
|
|
1729
1766
|
type: {
|
|
@@ -2076,6 +2113,12 @@ export const SemanticSettings = {
|
|
|
2076
2113
|
name: "Composite",
|
|
2077
2114
|
className: "SemanticSettings",
|
|
2078
2115
|
modelProperties: {
|
|
2116
|
+
defaultConfiguration: {
|
|
2117
|
+
serializedName: "defaultConfiguration",
|
|
2118
|
+
type: {
|
|
2119
|
+
name: "String"
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2079
2122
|
configurations: {
|
|
2080
2123
|
serializedName: "configurations",
|
|
2081
2124
|
type: {
|
|
@@ -2166,6 +2209,53 @@ export const SemanticField = {
|
|
|
2166
2209
|
}
|
|
2167
2210
|
}
|
|
2168
2211
|
};
|
|
2212
|
+
export const VectorSearch = {
|
|
2213
|
+
type: {
|
|
2214
|
+
name: "Composite",
|
|
2215
|
+
className: "VectorSearch",
|
|
2216
|
+
modelProperties: {
|
|
2217
|
+
algorithmConfigurations: {
|
|
2218
|
+
serializedName: "algorithmConfigurations",
|
|
2219
|
+
type: {
|
|
2220
|
+
name: "Sequence",
|
|
2221
|
+
element: {
|
|
2222
|
+
type: {
|
|
2223
|
+
name: "Composite",
|
|
2224
|
+
className: "VectorSearchAlgorithmConfiguration"
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
};
|
|
2232
|
+
export const VectorSearchAlgorithmConfiguration = {
|
|
2233
|
+
type: {
|
|
2234
|
+
name: "Composite",
|
|
2235
|
+
className: "VectorSearchAlgorithmConfiguration",
|
|
2236
|
+
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
2237
|
+
polymorphicDiscriminator: {
|
|
2238
|
+
serializedName: "kind",
|
|
2239
|
+
clientName: "kind"
|
|
2240
|
+
},
|
|
2241
|
+
modelProperties: {
|
|
2242
|
+
name: {
|
|
2243
|
+
serializedName: "name",
|
|
2244
|
+
required: true,
|
|
2245
|
+
type: {
|
|
2246
|
+
name: "String"
|
|
2247
|
+
}
|
|
2248
|
+
},
|
|
2249
|
+
kind: {
|
|
2250
|
+
serializedName: "kind",
|
|
2251
|
+
required: true,
|
|
2252
|
+
type: {
|
|
2253
|
+
name: "String"
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
};
|
|
2169
2259
|
export const ListIndexesResult = {
|
|
2170
2260
|
type: {
|
|
2171
2261
|
name: "Composite",
|
|
@@ -2208,6 +2298,13 @@ export const GetIndexStatisticsResult = {
|
|
|
2208
2298
|
type: {
|
|
2209
2299
|
name: "Number"
|
|
2210
2300
|
}
|
|
2301
|
+
},
|
|
2302
|
+
vectorIndexSize: {
|
|
2303
|
+
serializedName: "vectorIndexSize",
|
|
2304
|
+
readOnly: true,
|
|
2305
|
+
type: {
|
|
2306
|
+
name: "Number"
|
|
2307
|
+
}
|
|
2211
2308
|
}
|
|
2212
2309
|
}
|
|
2213
2310
|
}
|
|
@@ -2465,6 +2562,13 @@ export const ServiceCounters = {
|
|
|
2465
2562
|
name: "Composite",
|
|
2466
2563
|
className: "ResourceCounter"
|
|
2467
2564
|
}
|
|
2565
|
+
},
|
|
2566
|
+
vectorIndexSizeCounter: {
|
|
2567
|
+
serializedName: "vectorIndexSize",
|
|
2568
|
+
type: {
|
|
2569
|
+
name: "Composite",
|
|
2570
|
+
className: "ResourceCounter"
|
|
2571
|
+
}
|
|
2468
2572
|
}
|
|
2469
2573
|
}
|
|
2470
2574
|
}
|
|
@@ -2527,6 +2631,57 @@ export const ServiceLimits = {
|
|
|
2527
2631
|
}
|
|
2528
2632
|
}
|
|
2529
2633
|
};
|
|
2634
|
+
export const HnswParameters = {
|
|
2635
|
+
type: {
|
|
2636
|
+
name: "Composite",
|
|
2637
|
+
className: "HnswParameters",
|
|
2638
|
+
modelProperties: {
|
|
2639
|
+
m: {
|
|
2640
|
+
defaultValue: 4,
|
|
2641
|
+
constraints: {
|
|
2642
|
+
InclusiveMaximum: 10,
|
|
2643
|
+
InclusiveMinimum: 4
|
|
2644
|
+
},
|
|
2645
|
+
serializedName: "m",
|
|
2646
|
+
nullable: true,
|
|
2647
|
+
type: {
|
|
2648
|
+
name: "Number"
|
|
2649
|
+
}
|
|
2650
|
+
},
|
|
2651
|
+
efConstruction: {
|
|
2652
|
+
defaultValue: 400,
|
|
2653
|
+
constraints: {
|
|
2654
|
+
InclusiveMaximum: 1000,
|
|
2655
|
+
InclusiveMinimum: 100
|
|
2656
|
+
},
|
|
2657
|
+
serializedName: "efConstruction",
|
|
2658
|
+
nullable: true,
|
|
2659
|
+
type: {
|
|
2660
|
+
name: "Number"
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
efSearch: {
|
|
2664
|
+
defaultValue: 500,
|
|
2665
|
+
constraints: {
|
|
2666
|
+
InclusiveMaximum: 1000,
|
|
2667
|
+
InclusiveMinimum: 100
|
|
2668
|
+
},
|
|
2669
|
+
serializedName: "efSearch",
|
|
2670
|
+
nullable: true,
|
|
2671
|
+
type: {
|
|
2672
|
+
name: "Number"
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
metric: {
|
|
2676
|
+
serializedName: "metric",
|
|
2677
|
+
nullable: true,
|
|
2678
|
+
type: {
|
|
2679
|
+
name: "String"
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
};
|
|
2530
2685
|
export const DistanceScoringParameters = {
|
|
2531
2686
|
type: {
|
|
2532
2687
|
name: "Composite",
|
|
@@ -3310,9 +3465,7 @@ export const DocumentExtractionSkill = {
|
|
|
3310
3465
|
nullable: true,
|
|
3311
3466
|
type: {
|
|
3312
3467
|
name: "Dictionary",
|
|
3313
|
-
value: {
|
|
3314
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
3315
|
-
}
|
|
3468
|
+
value: { type: { name: "any" } }
|
|
3316
3469
|
}
|
|
3317
3470
|
} })
|
|
3318
3471
|
}
|
|
@@ -3358,6 +3511,18 @@ export const WebApiSkill = {
|
|
|
3358
3511
|
type: {
|
|
3359
3512
|
name: "Number"
|
|
3360
3513
|
}
|
|
3514
|
+
}, authResourceId: {
|
|
3515
|
+
serializedName: "authResourceId",
|
|
3516
|
+
nullable: true,
|
|
3517
|
+
type: {
|
|
3518
|
+
name: "String"
|
|
3519
|
+
}
|
|
3520
|
+
}, authIdentity: {
|
|
3521
|
+
serializedName: "authIdentity",
|
|
3522
|
+
type: {
|
|
3523
|
+
name: "Composite",
|
|
3524
|
+
className: "SearchIndexerDataIdentity"
|
|
3525
|
+
}
|
|
3361
3526
|
} })
|
|
3362
3527
|
}
|
|
3363
3528
|
};
|
|
@@ -5015,6 +5180,22 @@ export const BM25Similarity = {
|
|
|
5015
5180
|
} })
|
|
5016
5181
|
}
|
|
5017
5182
|
};
|
|
5183
|
+
export const HnswVectorSearchAlgorithmConfiguration = {
|
|
5184
|
+
serializedName: "hnsw",
|
|
5185
|
+
type: {
|
|
5186
|
+
name: "Composite",
|
|
5187
|
+
className: "HnswVectorSearchAlgorithmConfiguration",
|
|
5188
|
+
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
5189
|
+
polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
|
|
5190
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
|
|
5191
|
+
serializedName: "hnswParameters",
|
|
5192
|
+
type: {
|
|
5193
|
+
name: "Composite",
|
|
5194
|
+
className: "HnswParameters"
|
|
5195
|
+
}
|
|
5196
|
+
} })
|
|
5197
|
+
}
|
|
5198
|
+
};
|
|
5018
5199
|
export const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
|
|
5019
5200
|
type: {
|
|
5020
5201
|
name: "Composite",
|
|
@@ -5042,6 +5223,7 @@ export let discriminators = {
|
|
|
5042
5223
|
CharFilter: CharFilter,
|
|
5043
5224
|
LexicalNormalizer: LexicalNormalizer,
|
|
5044
5225
|
Similarity: Similarity,
|
|
5226
|
+
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
5045
5227
|
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
|
|
5046
5228
|
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
|
|
5047
5229
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
|
|
@@ -5117,6 +5299,7 @@ export let discriminators = {
|
|
|
5117
5299
|
"CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
|
|
5118
5300
|
"LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
|
|
5119
5301
|
"Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
|
|
5120
|
-
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
|
|
5302
|
+
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
|
|
5303
|
+
"VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration
|
|
5121
5304
|
};
|
|
5122
5305
|
//# sourceMappingURL=mappers.js.map
|