@azure/search-documents 11.3.0-alpha.20210901.1 → 11.3.0-alpha.20210930.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -6
- package/dist/index.js +26 -14
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +17 -11
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/searchClient.js +8 -2
- 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/serviceModels.js.map +1 -1
- package/package.json +5 -4
- package/types/search-documents.d.ts +24 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 11.3.0-beta.3 (
|
|
3
|
+
## 11.3.0-beta.3 (2021-09-07)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bugs Fixed
|
|
10
|
-
|
|
11
|
-
### Other Changes
|
|
7
|
+
- Added a new property `normalizerName` to the `AnalyzeRequest` object.
|
|
8
|
+
- Added 2 new properties `captions` & `semanticFields` to the `SearchRequestOptions` object.
|
|
12
9
|
|
|
13
10
|
## 11.3.0-beta.2 (2021-08-10)
|
|
14
11
|
|
package/dist/index.js
CHANGED
|
@@ -3375,8 +3375,8 @@ class SearchClient$1 {
|
|
|
3375
3375
|
}
|
|
3376
3376
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
3377
3377
|
const { operationOptions, restOptions } = this.extractOperationOptions(Object.assign({}, options));
|
|
3378
|
-
const { select, searchFields, orderBy } = restOptions, nonFieldOptions = tslib.__rest(restOptions, ["select", "searchFields", "orderBy"]);
|
|
3379
|
-
const fullOptions = Object.assign(Object.assign({ searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions), nextPageParameters);
|
|
3378
|
+
const { select, searchFields, orderBy, semanticFields } = restOptions, nonFieldOptions = tslib.__rest(restOptions, ["select", "searchFields", "orderBy", "semanticFields"]);
|
|
3379
|
+
const fullOptions = Object.assign(Object.assign({ searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions), nextPageParameters);
|
|
3380
3380
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", operationOptions);
|
|
3381
3381
|
try {
|
|
3382
3382
|
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
|
|
@@ -3720,6 +3720,12 @@ class SearchClient$1 {
|
|
|
3720
3720
|
}
|
|
3721
3721
|
return searchFields;
|
|
3722
3722
|
}
|
|
3723
|
+
convertSemanticFields(semanticFields) {
|
|
3724
|
+
if (semanticFields) {
|
|
3725
|
+
return semanticFields.join(",");
|
|
3726
|
+
}
|
|
3727
|
+
return semanticFields;
|
|
3728
|
+
}
|
|
3723
3729
|
convertOrderBy(orderBy) {
|
|
3724
3730
|
if (orderBy) {
|
|
3725
3731
|
return orderBy.join(",");
|
|
@@ -4130,7 +4136,7 @@ const SearchIndexerDataIdentity = {
|
|
|
4130
4136
|
uberParent: "SearchIndexerDataIdentity",
|
|
4131
4137
|
polymorphicDiscriminator: {
|
|
4132
4138
|
serializedName: "@odata\\.type",
|
|
4133
|
-
clientName: "
|
|
4139
|
+
clientName: "odatatype"
|
|
4134
4140
|
},
|
|
4135
4141
|
modelProperties: {
|
|
4136
4142
|
odatatype: {
|
|
@@ -4150,7 +4156,7 @@ const DataChangeDetectionPolicy = {
|
|
|
4150
4156
|
uberParent: "DataChangeDetectionPolicy",
|
|
4151
4157
|
polymorphicDiscriminator: {
|
|
4152
4158
|
serializedName: "@odata\\.type",
|
|
4153
|
-
clientName: "
|
|
4159
|
+
clientName: "odatatype"
|
|
4154
4160
|
},
|
|
4155
4161
|
modelProperties: {
|
|
4156
4162
|
odatatype: {
|
|
@@ -4170,7 +4176,7 @@ const DataDeletionDetectionPolicy = {
|
|
|
4170
4176
|
uberParent: "DataDeletionDetectionPolicy",
|
|
4171
4177
|
polymorphicDiscriminator: {
|
|
4172
4178
|
serializedName: "@odata\\.type",
|
|
4173
|
-
clientName: "
|
|
4179
|
+
clientName: "odatatype"
|
|
4174
4180
|
},
|
|
4175
4181
|
modelProperties: {
|
|
4176
4182
|
odatatype: {
|
|
@@ -5008,7 +5014,7 @@ const SearchIndexerSkill = {
|
|
|
5008
5014
|
uberParent: "SearchIndexerSkill",
|
|
5009
5015
|
polymorphicDiscriminator: {
|
|
5010
5016
|
serializedName: "@odata\\.type",
|
|
5011
|
-
clientName: "
|
|
5017
|
+
clientName: "odatatype"
|
|
5012
5018
|
},
|
|
5013
5019
|
modelProperties: {
|
|
5014
5020
|
odatatype: {
|
|
@@ -5132,7 +5138,7 @@ const CognitiveServicesAccount = {
|
|
|
5132
5138
|
uberParent: "CognitiveServicesAccount",
|
|
5133
5139
|
polymorphicDiscriminator: {
|
|
5134
5140
|
serializedName: "@odata\\.type",
|
|
5135
|
-
clientName: "
|
|
5141
|
+
clientName: "odatatype"
|
|
5136
5142
|
},
|
|
5137
5143
|
modelProperties: {
|
|
5138
5144
|
odatatype: {
|
|
@@ -5781,7 +5787,7 @@ const LexicalAnalyzer = {
|
|
|
5781
5787
|
uberParent: "LexicalAnalyzer",
|
|
5782
5788
|
polymorphicDiscriminator: {
|
|
5783
5789
|
serializedName: "@odata\\.type",
|
|
5784
|
-
clientName: "
|
|
5790
|
+
clientName: "odatatype"
|
|
5785
5791
|
},
|
|
5786
5792
|
modelProperties: {
|
|
5787
5793
|
odatatype: {
|
|
@@ -5808,7 +5814,7 @@ const LexicalTokenizer = {
|
|
|
5808
5814
|
uberParent: "LexicalTokenizer",
|
|
5809
5815
|
polymorphicDiscriminator: {
|
|
5810
5816
|
serializedName: "@odata\\.type",
|
|
5811
|
-
clientName: "
|
|
5817
|
+
clientName: "odatatype"
|
|
5812
5818
|
},
|
|
5813
5819
|
modelProperties: {
|
|
5814
5820
|
odatatype: {
|
|
@@ -5835,7 +5841,7 @@ const TokenFilter = {
|
|
|
5835
5841
|
uberParent: "TokenFilter",
|
|
5836
5842
|
polymorphicDiscriminator: {
|
|
5837
5843
|
serializedName: "@odata\\.type",
|
|
5838
|
-
clientName: "
|
|
5844
|
+
clientName: "odatatype"
|
|
5839
5845
|
},
|
|
5840
5846
|
modelProperties: {
|
|
5841
5847
|
odatatype: {
|
|
@@ -5862,7 +5868,7 @@ const CharFilter = {
|
|
|
5862
5868
|
uberParent: "CharFilter",
|
|
5863
5869
|
polymorphicDiscriminator: {
|
|
5864
5870
|
serializedName: "@odata\\.type",
|
|
5865
|
-
clientName: "
|
|
5871
|
+
clientName: "odatatype"
|
|
5866
5872
|
},
|
|
5867
5873
|
modelProperties: {
|
|
5868
5874
|
odatatype: {
|
|
@@ -5889,7 +5895,7 @@ const LexicalNormalizer = {
|
|
|
5889
5895
|
uberParent: "LexicalNormalizer",
|
|
5890
5896
|
polymorphicDiscriminator: {
|
|
5891
5897
|
serializedName: "@odata\\.type",
|
|
5892
|
-
clientName: "
|
|
5898
|
+
clientName: "odatatype"
|
|
5893
5899
|
},
|
|
5894
5900
|
modelProperties: {
|
|
5895
5901
|
odatatype: {
|
|
@@ -5916,7 +5922,7 @@ const Similarity = {
|
|
|
5916
5922
|
uberParent: "Similarity",
|
|
5917
5923
|
polymorphicDiscriminator: {
|
|
5918
5924
|
serializedName: "@odata\\.type",
|
|
5919
|
-
clientName: "
|
|
5925
|
+
clientName: "odatatype"
|
|
5920
5926
|
},
|
|
5921
5927
|
modelProperties: {
|
|
5922
5928
|
odatatype: {
|
|
@@ -5999,6 +6005,12 @@ const AnalyzeRequest = {
|
|
|
5999
6005
|
name: "String"
|
|
6000
6006
|
}
|
|
6001
6007
|
},
|
|
6008
|
+
normalizer: {
|
|
6009
|
+
serializedName: "normalizer",
|
|
6010
|
+
type: {
|
|
6011
|
+
name: "String"
|
|
6012
|
+
}
|
|
6013
|
+
},
|
|
6002
6014
|
tokenFilters: {
|
|
6003
6015
|
serializedName: "tokenFilters",
|
|
6004
6016
|
type: {
|
|
@@ -10686,7 +10698,7 @@ class SearchIndexClient {
|
|
|
10686
10698
|
const { operationOptions, restOptions } = extractOperationOptions(options);
|
|
10687
10699
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
10688
10700
|
try {
|
|
10689
|
-
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
|
|
10701
|
+
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
|
|
10690
10702
|
return result;
|
|
10691
10703
|
}
|
|
10692
10704
|
catch (e) {
|