@aws-sdk/client-cloudsearch-domain 3.296.0 → 3.297.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/dist-types/CloudSearchDomain.d.ts +4 -0
- package/dist-types/CloudSearchDomainClient.d.ts +24 -4
- package/dist-types/commands/SearchCommand.d.ts +16 -0
- package/dist-types/commands/SuggestCommand.d.ts +16 -0
- package/dist-types/commands/UploadDocumentsCommand.d.ts +17 -2
- package/dist-types/models/CloudSearchDomainServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +37 -13
- package/dist-types/ts3.4/commands/UploadDocumentsCommand.d.ts +1 -2
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ import { SearchCommandInput, SearchCommandOutput } from "./commands/SearchComman
|
|
|
4
4
|
import { SuggestCommandInput, SuggestCommandOutput } from "./commands/SuggestCommand";
|
|
5
5
|
import { UploadDocumentsCommandInput, UploadDocumentsCommandOutput } from "./commands/UploadDocumentsCommand";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
7
8
|
* <p>You use the AmazonCloudSearch2013 API to upload documents to a search domain and search those documents. </p>
|
|
8
9
|
*
|
|
9
10
|
* <p>The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. You submit suggest requests to the search endpoint. </p>
|
|
@@ -11,6 +12,7 @@ import { UploadDocumentsCommandInput, UploadDocumentsCommandOutput } from "./com
|
|
|
11
12
|
*/
|
|
12
13
|
export declare class CloudSearchDomain extends CloudSearchDomainClient {
|
|
13
14
|
/**
|
|
15
|
+
* @public
|
|
14
16
|
* <p>Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:</p>
|
|
15
17
|
* <ul>
|
|
16
18
|
* <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> fields for the specified string. Search for phrases, individual terms, and prefixes. </li>
|
|
@@ -25,6 +27,7 @@ export declare class CloudSearchDomain extends CloudSearchDomainClient {
|
|
|
25
27
|
search(args: SearchCommandInput, cb: (err: any, data?: SearchCommandOutput) => void): void;
|
|
26
28
|
search(args: SearchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchCommandOutput) => void): void;
|
|
27
29
|
/**
|
|
30
|
+
* @public
|
|
28
31
|
* <p>Retrieves autocomplete suggestions for a partial query string. You can use suggestions enable you to display likely matches before users finish typing. In Amazon CloudSearch, suggestions are based on the contents of a particular text field. When you request suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester field start with the specified query string. The beginning of the field must match the query string to be considered a match. </p>
|
|
29
32
|
* <p>For more information about configuring suggesters and retrieving suggestions, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
|
|
30
33
|
*
|
|
@@ -34,6 +37,7 @@ export declare class CloudSearchDomain extends CloudSearchDomainClient {
|
|
|
34
37
|
suggest(args: SuggestCommandInput, cb: (err: any, data?: SuggestCommandOutput) => void): void;
|
|
35
38
|
suggest(args: SuggestCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SuggestCommandOutput) => void): void;
|
|
36
39
|
/**
|
|
40
|
+
* @public
|
|
37
41
|
* <p>Posts a batch of documents to a search domain for indexing. A document batch is a collection of add and delete operations that represent the documents you want to add, update, or delete from your domain. Batches can be described in either JSON or XML. Each item that you want Amazon CloudSearch to return as a search result (such as a product) is represented as a document. Every document has a unique ID and one or more fields that contain the data that you want to search and return in results. Individual documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 MB. To get the best possible upload performance, group add and delete operations in batches that are close the 5 MB limit. Submitting a large volume of single-document batches can overload a domain's document service. </p>
|
|
38
42
|
* <p>The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. To get the document endpoint for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. </p>
|
|
39
43
|
* <p>For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>.
|
|
@@ -11,15 +11,24 @@ import { SearchCommandInput, SearchCommandOutput } from "./commands/SearchComman
|
|
|
11
11
|
import { SuggestCommandInput, SuggestCommandOutput } from "./commands/SuggestCommand";
|
|
12
12
|
import { UploadDocumentsCommandInput, UploadDocumentsCommandOutput } from "./commands/UploadDocumentsCommand";
|
|
13
13
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
14
17
|
export type ServiceInputTypes = SearchCommandInput | SuggestCommandInput | UploadDocumentsCommandInput;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
15
21
|
export type ServiceOutputTypes = SearchCommandOutput | SuggestCommandOutput | UploadDocumentsCommandOutput;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
16
25
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
17
26
|
/**
|
|
18
27
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
19
28
|
*/
|
|
20
29
|
requestHandler?: __HttpHandler;
|
|
21
30
|
/**
|
|
22
|
-
* A constructor for a class implementing the {@link
|
|
31
|
+
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
|
|
23
32
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
24
33
|
* @internal
|
|
25
34
|
*/
|
|
@@ -109,23 +118,34 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
109
118
|
*/
|
|
110
119
|
logger?: __Logger;
|
|
111
120
|
/**
|
|
112
|
-
* The {@link
|
|
121
|
+
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
113
122
|
*/
|
|
114
123
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
115
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
116
128
|
type CloudSearchDomainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
117
129
|
/**
|
|
118
|
-
*
|
|
130
|
+
* @public
|
|
131
|
+
*
|
|
132
|
+
* The configuration interface of CloudSearchDomainClient class constructor that set the region, credentials and other options.
|
|
119
133
|
*/
|
|
120
134
|
export interface CloudSearchDomainClientConfig extends CloudSearchDomainClientConfigType {
|
|
121
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
122
139
|
type CloudSearchDomainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
123
140
|
/**
|
|
124
|
-
*
|
|
141
|
+
* @public
|
|
142
|
+
*
|
|
143
|
+
* The resolved configuration interface of CloudSearchDomainClient class. This is resolved and normalized from the {@link CloudSearchDomainClientConfig | constructor configuration interface}.
|
|
125
144
|
*/
|
|
126
145
|
export interface CloudSearchDomainClientResolvedConfig extends CloudSearchDomainClientResolvedConfigType {
|
|
127
146
|
}
|
|
128
147
|
/**
|
|
148
|
+
* @public
|
|
129
149
|
* <p>You use the AmazonCloudSearch2013 API to upload documents to a search domain and search those documents. </p>
|
|
130
150
|
*
|
|
131
151
|
* <p>The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. You submit suggest requests to the search endpoint. </p>
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CloudSearchDomainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudSearchDomainClient";
|
|
5
5
|
import { SearchRequest, SearchResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link SearchCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface SearchCommandInput extends SearchRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link SearchCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:</p>
|
|
18
23
|
* <ul>
|
|
19
24
|
* <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> fields for the specified string. Search for phrases, individual terms, and prefixes. </li>
|
|
@@ -33,6 +38,8 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {
|
|
|
33
38
|
* const response = await client.send(command);
|
|
34
39
|
* ```
|
|
35
40
|
*
|
|
41
|
+
* @param SearchCommandInput - {@link SearchCommandInput}
|
|
42
|
+
* @returns {@link SearchCommandOutput}
|
|
36
43
|
* @see {@link SearchCommandInput} for command's `input` shape.
|
|
37
44
|
* @see {@link SearchCommandOutput} for command's `response` shape.
|
|
38
45
|
* @see {@link CloudSearchDomainClientResolvedConfig | config} for CloudSearchDomainClient's `config` shape.
|
|
@@ -45,11 +52,20 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {
|
|
|
45
52
|
export declare class SearchCommand extends $Command<SearchCommandInput, SearchCommandOutput, CloudSearchDomainClientResolvedConfig> {
|
|
46
53
|
readonly input: SearchCommandInput;
|
|
47
54
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
48
58
|
constructor(input: SearchCommandInput);
|
|
49
59
|
/**
|
|
50
60
|
* @internal
|
|
51
61
|
*/
|
|
52
62
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudSearchDomainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchCommandInput, SearchCommandOutput>;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
53
66
|
private serialize;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
54
70
|
private deserialize;
|
|
55
71
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CloudSearchDomainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudSearchDomainClient";
|
|
5
5
|
import { SuggestRequest, SuggestResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link SuggestCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface SuggestCommandInput extends SuggestRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link SuggestCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface SuggestCommandOutput extends SuggestResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Retrieves autocomplete suggestions for a partial query string. You can use suggestions enable you to display likely matches before users finish typing. In Amazon CloudSearch, suggestions are based on the contents of a particular text field. When you request suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester field start with the specified query string. The beginning of the field must match the query string to be considered a match. </p>
|
|
18
23
|
* <p>For more information about configuring suggesters and retrieving suggestions, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
|
|
19
24
|
*
|
|
@@ -28,6 +33,8 @@ export interface SuggestCommandOutput extends SuggestResponse, __MetadataBearer
|
|
|
28
33
|
* const response = await client.send(command);
|
|
29
34
|
* ```
|
|
30
35
|
*
|
|
36
|
+
* @param SuggestCommandInput - {@link SuggestCommandInput}
|
|
37
|
+
* @returns {@link SuggestCommandOutput}
|
|
31
38
|
* @see {@link SuggestCommandInput} for command's `input` shape.
|
|
32
39
|
* @see {@link SuggestCommandOutput} for command's `response` shape.
|
|
33
40
|
* @see {@link CloudSearchDomainClientResolvedConfig | config} for CloudSearchDomainClient's `config` shape.
|
|
@@ -40,11 +47,20 @@ export interface SuggestCommandOutput extends SuggestResponse, __MetadataBearer
|
|
|
40
47
|
export declare class SuggestCommand extends $Command<SuggestCommandInput, SuggestCommandOutput, CloudSearchDomainClientResolvedConfig> {
|
|
41
48
|
readonly input: SuggestCommandInput;
|
|
42
49
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
43
53
|
constructor(input: SuggestCommandInput);
|
|
44
54
|
/**
|
|
45
55
|
* @internal
|
|
46
56
|
*/
|
|
47
57
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudSearchDomainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SuggestCommandInput, SuggestCommandOutput>;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
48
61
|
private serialize;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
49
65
|
private deserialize;
|
|
50
66
|
}
|
|
@@ -5,9 +5,11 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
5
5
|
import { CloudSearchDomainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudSearchDomainClient";
|
|
6
6
|
import { UploadDocumentsRequest, UploadDocumentsResponse } from "../models/models_0";
|
|
7
7
|
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
8
10
|
* The input for {@link UploadDocumentsCommand}.
|
|
9
11
|
*/
|
|
10
|
-
type UploadDocumentsCommandInputType = Omit<UploadDocumentsRequest, "documents"> & {
|
|
12
|
+
export type UploadDocumentsCommandInputType = Omit<UploadDocumentsRequest, "documents"> & {
|
|
11
13
|
/**
|
|
12
14
|
* For *`UploadDocumentsRequest["documents"]`*, see {@link UploadDocumentsRequest.documents}.
|
|
13
15
|
*/
|
|
@@ -19,11 +21,14 @@ type UploadDocumentsCommandInputType = Omit<UploadDocumentsRequest, "documents">
|
|
|
19
21
|
export interface UploadDocumentsCommandInput extends UploadDocumentsCommandInputType {
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
22
26
|
* The output of {@link UploadDocumentsCommand}.
|
|
23
27
|
*/
|
|
24
28
|
export interface UploadDocumentsCommandOutput extends UploadDocumentsResponse, __MetadataBearer {
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
31
|
+
* @public
|
|
27
32
|
* <p>Posts a batch of documents to a search domain for indexing. A document batch is a collection of add and delete operations that represent the documents you want to add, update, or delete from your domain. Batches can be described in either JSON or XML. Each item that you want Amazon CloudSearch to return as a search result (such as a product) is represented as a document. Every document has a unique ID and one or more fields that contain the data that you want to search and return in results. Individual documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 MB. To get the best possible upload performance, group add and delete operations in batches that are close the 5 MB limit. Submitting a large volume of single-document batches can overload a domain's document service. </p>
|
|
28
33
|
* <p>The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. To get the document endpoint for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. </p>
|
|
29
34
|
* <p>For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>.
|
|
@@ -38,6 +43,8 @@ export interface UploadDocumentsCommandOutput extends UploadDocumentsResponse, _
|
|
|
38
43
|
* const response = await client.send(command);
|
|
39
44
|
* ```
|
|
40
45
|
*
|
|
46
|
+
* @param UploadDocumentsCommandInput - {@link UploadDocumentsCommandInput}
|
|
47
|
+
* @returns {@link UploadDocumentsCommandOutput}
|
|
41
48
|
* @see {@link UploadDocumentsCommandInput} for command's `input` shape.
|
|
42
49
|
* @see {@link UploadDocumentsCommandOutput} for command's `response` shape.
|
|
43
50
|
* @see {@link CloudSearchDomainClientResolvedConfig | config} for CloudSearchDomainClient's `config` shape.
|
|
@@ -50,12 +57,20 @@ export interface UploadDocumentsCommandOutput extends UploadDocumentsResponse, _
|
|
|
50
57
|
export declare class UploadDocumentsCommand extends $Command<UploadDocumentsCommandInput, UploadDocumentsCommandOutput, CloudSearchDomainClientResolvedConfig> {
|
|
51
58
|
readonly input: UploadDocumentsCommandInput;
|
|
52
59
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
53
63
|
constructor(input: UploadDocumentsCommandInput);
|
|
54
64
|
/**
|
|
55
65
|
* @internal
|
|
56
66
|
*/
|
|
57
67
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudSearchDomainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UploadDocumentsCommandInput, UploadDocumentsCommandOutput>;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
58
71
|
private serialize;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
59
75
|
private deserialize;
|
|
60
76
|
}
|
|
61
|
-
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
2
|
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
3
5
|
* Base exception class for all service exceptions from CloudSearchDomain service.
|
|
4
6
|
*/
|
|
5
7
|
export declare class CloudSearchDomainServiceException extends __ServiceException {
|
|
@@ -3,6 +3,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
|
|
|
3
3
|
import { Readable } from "stream";
|
|
4
4
|
import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
|
|
5
5
|
/**
|
|
6
|
+
* @public
|
|
6
7
|
* <p>Information about any problems encountered while processing a search request.</p>
|
|
7
8
|
*/
|
|
8
9
|
export declare class SearchException extends __BaseException {
|
|
@@ -13,8 +14,12 @@ export declare class SearchException extends __BaseException {
|
|
|
13
14
|
*/
|
|
14
15
|
constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
|
|
15
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
16
20
|
export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
|
|
17
21
|
/**
|
|
22
|
+
* @public
|
|
18
23
|
* <p>Container for the parameters to the <code>Search</code> request.</p>
|
|
19
24
|
*/
|
|
20
25
|
export interface SearchRequest {
|
|
@@ -29,16 +34,16 @@ export interface SearchRequest {
|
|
|
29
34
|
/**
|
|
30
35
|
* <p>Defines one or more numeric expressions that can be used to sort results or specify search or filter
|
|
31
36
|
* criteria. You can also specify expressions as return fields. </p>
|
|
32
|
-
* <p>You specify the expressions in JSON using the form <code
|
|
37
|
+
* <p>You specify the expressions in JSON using the form <code>\{"EXPRESSIONNAME":"EXPRESSION"\}</code>. You can define and use multiple expressions in a search request. For example:</p>
|
|
33
38
|
* <p><code>
|
|
34
|
-
* {"expression1":"_score*rating", "expression2":"(1/rank)*year"}
|
|
39
|
+
* \{"expression1":"_score*rating", "expression2":"(1/rank)*year"\}
|
|
35
40
|
* </code> </p>
|
|
36
41
|
* <p>For information about the variables, operators, and functions you can use in expressions, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html#writing-expressions">Writing Expressions</a>
|
|
37
42
|
* in the <i>Amazon CloudSearch Developer Guide</i>.</p>
|
|
38
43
|
*/
|
|
39
44
|
expr?: string;
|
|
40
45
|
/**
|
|
41
|
-
* <p>Specifies one or more fields for which to get facet information, and options that control how the facet information is returned. Each specified field must be facet-enabled in the domain configuration. The fields and options are specified in JSON using the form <code
|
|
46
|
+
* <p>Specifies one or more fields for which to get facet information, and options that control how the facet information is returned. Each specified field must be facet-enabled in the domain configuration. The fields and options are specified in JSON using the form <code>\{"FIELD":\{"OPTION":VALUE,"OPTION:"STRING"\},"FIELD":\{"OPTION":VALUE,"OPTION":"STRING"\}\}</code>.</p>
|
|
42
47
|
* <p>You can specify the following faceting options:</p>
|
|
43
48
|
* <ul>
|
|
44
49
|
* <li>
|
|
@@ -71,18 +76,18 @@ export interface SearchRequest {
|
|
|
71
76
|
*
|
|
72
77
|
* <p>To count particular buckets of values, use the <code>buckets</code> option. For example, the following request uses the <code>buckets</code> option to calculate and return facet counts by decade.</p>
|
|
73
78
|
* <p><code>
|
|
74
|
-
* {"year"
|
|
79
|
+
* \{"year":\{"buckets":["[1970,1979]","[1980,1989]","[1990,1999]","[2000,2009]","[2010,\}"]\}\}
|
|
75
80
|
* </code></p>
|
|
76
81
|
*
|
|
77
82
|
* <p>To sort facets by facet count, use the <code>count</code> option. For example, the following request sets the <code>sort</code> option to <code>count</code> to sort the facet values by facet count, with the facet
|
|
78
83
|
* values that have the most matching documents listed first. Setting the <code>size</code> option to 3 returns only the top three facet values.</p>
|
|
79
84
|
* <p><code>
|
|
80
|
-
* {"year"
|
|
85
|
+
* \{"year":\{"sort":"count","size":3\}\}
|
|
81
86
|
* </code></p>
|
|
82
87
|
*
|
|
83
88
|
* <p>To sort the facets by value, use the <code>bucket</code> option. For example, the following request sets the <code>sort</code> option to <code>bucket</code> to sort the facet values numerically by year, with earliest year listed first. </p>
|
|
84
89
|
* <p><code>
|
|
85
|
-
* {"year"
|
|
90
|
+
* \{"year":\{"sort":"bucket"\}\}
|
|
86
91
|
* </code></p>
|
|
87
92
|
* <p>For more
|
|
88
93
|
* information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html">Getting and Using Facet Information</a>
|
|
@@ -97,7 +102,7 @@ export interface SearchRequest {
|
|
|
97
102
|
filterQuery?: string;
|
|
98
103
|
/**
|
|
99
104
|
* <p>Retrieves highlights for matches in the specified <code>text</code> or
|
|
100
|
-
* <code>text-array</code> fields. Each specified field must be highlight enabled in the domain configuration. The fields and options are specified in JSON using the form <code
|
|
105
|
+
* <code>text-array</code> fields. Each specified field must be highlight enabled in the domain configuration. The fields and options are specified in JSON using the form <code>\{"FIELD":\{"OPTION":VALUE,"OPTION:"STRING"\},"FIELD":\{"OPTION":VALUE,"OPTION":"STRING"\}\}</code>.</p>
|
|
101
106
|
* <p>You can specify the following highlight options:</p>
|
|
102
107
|
* <ul>
|
|
103
108
|
* <li>
|
|
@@ -127,10 +132,10 @@ export interface SearchRequest {
|
|
|
127
132
|
* <p>If no highlight options are specified for a field, the returned field text is treated as HTML and the first match is
|
|
128
133
|
* highlighted with emphasis tags: <code><em>search-term</em></code>.</p>
|
|
129
134
|
* <p>For example, the following request retrieves highlights for the <code>actors</code> and <code>title</code> fields.</p>
|
|
130
|
-
* <p> <code
|
|
131
|
-
* "actors": {},
|
|
132
|
-
* "title": {"format": "text","max_phrases": 2,"pre_tag": "<b>","post_tag": "</b>"}
|
|
133
|
-
* }</code></p>
|
|
135
|
+
* <p> <code>\{
|
|
136
|
+
* "actors": \{\},
|
|
137
|
+
* "title": \{"format": "text","max_phrases": 2,"pre_tag": "<b>","post_tag": "</b>"\}
|
|
138
|
+
* \}</code></p>
|
|
134
139
|
*/
|
|
135
140
|
highlight?: string;
|
|
136
141
|
/**
|
|
@@ -148,7 +153,7 @@ export interface SearchRequest {
|
|
|
148
153
|
*/
|
|
149
154
|
query: string | undefined;
|
|
150
155
|
/**
|
|
151
|
-
* <p>Configures options for the query parser specified in the <code>queryParser</code> parameter. You specify the options in JSON using the following form <code
|
|
156
|
+
* <p>Configures options for the query parser specified in the <code>queryParser</code> parameter. You specify the options in JSON using the following form <code>\{"OPTION1":"VALUE1","OPTION2":VALUE2"..."OPTIONN":"VALUEN"\}.</code></p>
|
|
152
157
|
*
|
|
153
158
|
* <p>The options you can configure vary according to which parser you use:</p>
|
|
154
159
|
* <ul>
|
|
@@ -281,12 +286,13 @@ export interface SearchRequest {
|
|
|
281
286
|
start?: number;
|
|
282
287
|
/**
|
|
283
288
|
* <p>Specifies one or more fields for which to get statistics information. Each specified field must be facet-enabled in the domain configuration. The fields are specified in JSON using the form:</p>
|
|
284
|
-
* <code
|
|
289
|
+
* <code>\{"FIELD-A":\{\},"FIELD-B":\{\}\}</code>
|
|
285
290
|
* <p>There are currently no options supported for statistics.</p>
|
|
286
291
|
*/
|
|
287
292
|
stats?: string;
|
|
288
293
|
}
|
|
289
294
|
/**
|
|
295
|
+
* @public
|
|
290
296
|
* <p>A container for facet information. </p>
|
|
291
297
|
*/
|
|
292
298
|
export interface Bucket {
|
|
@@ -300,6 +306,7 @@ export interface Bucket {
|
|
|
300
306
|
count?: number;
|
|
301
307
|
}
|
|
302
308
|
/**
|
|
309
|
+
* @public
|
|
303
310
|
* <p>A container for the calculated facet values and counts.</p>
|
|
304
311
|
*/
|
|
305
312
|
export interface BucketInfo {
|
|
@@ -309,6 +316,7 @@ export interface BucketInfo {
|
|
|
309
316
|
buckets?: Bucket[];
|
|
310
317
|
}
|
|
311
318
|
/**
|
|
319
|
+
* @public
|
|
312
320
|
* <p>Information about a document that matches the search request.</p>
|
|
313
321
|
*/
|
|
314
322
|
export interface Hit {
|
|
@@ -330,6 +338,7 @@ export interface Hit {
|
|
|
330
338
|
highlights?: Record<string, string>;
|
|
331
339
|
}
|
|
332
340
|
/**
|
|
341
|
+
* @public
|
|
333
342
|
* <p>The collection of documents that match the search request.</p>
|
|
334
343
|
*/
|
|
335
344
|
export interface Hits {
|
|
@@ -351,6 +360,7 @@ export interface Hits {
|
|
|
351
360
|
hit?: Hit[];
|
|
352
361
|
}
|
|
353
362
|
/**
|
|
363
|
+
* @public
|
|
354
364
|
* <p>The statistics for a field calculated in the request.</p>
|
|
355
365
|
*/
|
|
356
366
|
export interface FieldStats {
|
|
@@ -391,6 +401,7 @@ export interface FieldStats {
|
|
|
391
401
|
stddev?: number;
|
|
392
402
|
}
|
|
393
403
|
/**
|
|
404
|
+
* @public
|
|
394
405
|
* <p>Contains the resource id (<code>rid</code>) and the time it took to process the request (<code>timems</code>).</p>
|
|
395
406
|
*/
|
|
396
407
|
export interface SearchStatus {
|
|
@@ -404,6 +415,7 @@ export interface SearchStatus {
|
|
|
404
415
|
rid?: string;
|
|
405
416
|
}
|
|
406
417
|
/**
|
|
418
|
+
* @public
|
|
407
419
|
* <p>The result of a <code>Search</code> request. Contains the documents that match the specified search criteria and any requested fields, highlights, and facet information.</p>
|
|
408
420
|
*/
|
|
409
421
|
export interface SearchResponse {
|
|
@@ -425,6 +437,7 @@ export interface SearchResponse {
|
|
|
425
437
|
stats?: Record<string, FieldStats>;
|
|
426
438
|
}
|
|
427
439
|
/**
|
|
440
|
+
* @public
|
|
428
441
|
* <p>Container for the parameters to the <code>Suggest</code> request.</p>
|
|
429
442
|
*/
|
|
430
443
|
export interface SuggestRequest {
|
|
@@ -442,6 +455,7 @@ export interface SuggestRequest {
|
|
|
442
455
|
size?: number;
|
|
443
456
|
}
|
|
444
457
|
/**
|
|
458
|
+
* @public
|
|
445
459
|
* <p>Contains the resource id (<code>rid</code>) and the time it took to process the request (<code>timems</code>).</p>
|
|
446
460
|
*/
|
|
447
461
|
export interface SuggestStatus {
|
|
@@ -455,6 +469,7 @@ export interface SuggestStatus {
|
|
|
455
469
|
rid?: string;
|
|
456
470
|
}
|
|
457
471
|
/**
|
|
472
|
+
* @public
|
|
458
473
|
* <p>An autocomplete suggestion that matches the query string specified in a <code>SuggestRequest</code>. </p>
|
|
459
474
|
*/
|
|
460
475
|
export interface SuggestionMatch {
|
|
@@ -472,6 +487,7 @@ export interface SuggestionMatch {
|
|
|
472
487
|
id?: string;
|
|
473
488
|
}
|
|
474
489
|
/**
|
|
490
|
+
* @public
|
|
475
491
|
* <p>Container for the suggestion information returned in a <code>SuggestResponse</code>.</p>
|
|
476
492
|
*/
|
|
477
493
|
export interface SuggestModel {
|
|
@@ -489,6 +505,7 @@ export interface SuggestModel {
|
|
|
489
505
|
suggestions?: SuggestionMatch[];
|
|
490
506
|
}
|
|
491
507
|
/**
|
|
508
|
+
* @public
|
|
492
509
|
* <p>Contains the response to a <code>Suggest</code> request.</p>
|
|
493
510
|
*/
|
|
494
511
|
export interface SuggestResponse {
|
|
@@ -502,6 +519,7 @@ export interface SuggestResponse {
|
|
|
502
519
|
suggest?: SuggestModel;
|
|
503
520
|
}
|
|
504
521
|
/**
|
|
522
|
+
* @public
|
|
505
523
|
* <p>Information about any problems encountered while processing an upload request.</p>
|
|
506
524
|
*/
|
|
507
525
|
export declare class DocumentServiceException extends __BaseException {
|
|
@@ -516,8 +534,12 @@ export declare class DocumentServiceException extends __BaseException {
|
|
|
516
534
|
*/
|
|
517
535
|
constructor(opts: __ExceptionOptionType<DocumentServiceException, __BaseException>);
|
|
518
536
|
}
|
|
537
|
+
/**
|
|
538
|
+
* @public
|
|
539
|
+
*/
|
|
519
540
|
export type ContentType = "application/json" | "application/xml";
|
|
520
541
|
/**
|
|
542
|
+
* @public
|
|
521
543
|
* <p>Container for the parameters to the <code>UploadDocuments</code> request.</p>
|
|
522
544
|
*/
|
|
523
545
|
export interface UploadDocumentsRequest {
|
|
@@ -535,6 +557,7 @@ export interface UploadDocumentsRequest {
|
|
|
535
557
|
contentType: ContentType | string | undefined;
|
|
536
558
|
}
|
|
537
559
|
/**
|
|
560
|
+
* @public
|
|
538
561
|
* <p>A warning returned by the document service when an issue is discovered while processing an upload request.</p>
|
|
539
562
|
*/
|
|
540
563
|
export interface DocumentServiceWarning {
|
|
@@ -544,6 +567,7 @@ export interface DocumentServiceWarning {
|
|
|
544
567
|
message?: string;
|
|
545
568
|
}
|
|
546
569
|
/**
|
|
570
|
+
* @public
|
|
547
571
|
* <p>Contains the response to an <code>UploadDocuments</code> request.</p>
|
|
548
572
|
*/
|
|
549
573
|
export interface UploadDocumentsResponse {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
UploadDocumentsRequest,
|
|
16
16
|
UploadDocumentsResponse,
|
|
17
17
|
} from "../models/models_0";
|
|
18
|
-
type UploadDocumentsCommandInputType = Pick<
|
|
18
|
+
export type UploadDocumentsCommandInputType = Pick<
|
|
19
19
|
UploadDocumentsRequest,
|
|
20
20
|
Exclude<keyof UploadDocumentsRequest, "documents">
|
|
21
21
|
> & {
|
|
@@ -42,4 +42,3 @@ export declare class UploadDocumentsCommand extends $Command<
|
|
|
42
42
|
private serialize;
|
|
43
43
|
private deserialize;
|
|
44
44
|
}
|
|
45
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudsearch-domain",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudsearch Domain Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.297.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.297.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.296.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.297.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.296.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.296.0",
|