@aws-sdk/client-cloudsearch-domain 3.35.0 → 3.38.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/CloudSearchDomain.js +0 -7
  3. package/dist-cjs/CloudSearchDomainClient.js +0 -12
  4. package/dist-cjs/commands/SearchCommand.js +0 -33
  5. package/dist-cjs/commands/SuggestCommand.js +0 -28
  6. package/dist-cjs/commands/UploadDocumentsCommand.js +0 -28
  7. package/dist-cjs/commands/index.js +6 -0
  8. package/dist-cjs/endpoints.js +1 -2
  9. package/dist-cjs/index.js +3 -6
  10. package/dist-cjs/models/index.js +0 -1
  11. package/dist-cjs/models/models_0.js +0 -55
  12. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  13. package/dist-cjs/runtimeConfig.browser.js +1 -6
  14. package/dist-cjs/runtimeConfig.js +2 -7
  15. package/dist-cjs/runtimeConfig.native.js +0 -4
  16. package/dist-cjs/runtimeConfig.shared.js +0 -4
  17. package/dist-es/CloudSearchDomain.js +0 -1
  18. package/dist-es/CloudSearchDomainClient.js +0 -1
  19. package/dist-es/commands/SearchCommand.js +0 -1
  20. package/dist-es/commands/SuggestCommand.js +0 -1
  21. package/dist-es/commands/UploadDocumentsCommand.js +0 -1
  22. package/dist-es/commands/index.js +3 -0
  23. package/dist-es/endpoints.js +1 -2
  24. package/dist-es/index.js +3 -6
  25. package/dist-es/models/index.js +0 -1
  26. package/dist-es/models/models_0.js +0 -1
  27. package/dist-es/protocols/Aws_restJson1.js +0 -1
  28. package/dist-es/runtimeConfig.browser.js +1 -2
  29. package/dist-es/runtimeConfig.js +2 -3
  30. package/dist-es/runtimeConfig.native.js +0 -1
  31. package/dist-es/runtimeConfig.shared.js +0 -1
  32. package/dist-types/commands/index.d.ts +3 -0
  33. package/dist-types/index.d.ts +3 -5
  34. package/dist-types/ts3.4/CloudSearchDomain.d.ts +4 -29
  35. package/dist-types/ts3.4/CloudSearchDomainClient.d.ts +24 -92
  36. package/dist-types/ts3.4/commands/SearchCommand.d.ts +2 -28
  37. package/dist-types/ts3.4/commands/SuggestCommand.d.ts +2 -23
  38. package/dist-types/ts3.4/commands/UploadDocumentsCommand.d.ts +5 -30
  39. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  40. package/dist-types/ts3.4/index.d.ts +3 -5
  41. package/dist-types/ts3.4/models/models_0.d.ts +99 -513
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  45. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  46. package/package.json +33 -30
  47. package/dist-cjs/CloudSearchDomain.js.map +0 -1
  48. package/dist-cjs/CloudSearchDomainClient.js.map +0 -1
  49. package/dist-cjs/commands/SearchCommand.js.map +0 -1
  50. package/dist-cjs/commands/SuggestCommand.js.map +0 -1
  51. package/dist-cjs/commands/UploadDocumentsCommand.js.map +0 -1
  52. package/dist-cjs/endpoints.js.map +0 -1
  53. package/dist-cjs/index.js.map +0 -1
  54. package/dist-cjs/models/index.js.map +0 -1
  55. package/dist-cjs/models/models_0.js.map +0 -1
  56. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  57. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  58. package/dist-cjs/runtimeConfig.js.map +0 -1
  59. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  60. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  61. package/dist-es/CloudSearchDomain.js.map +0 -1
  62. package/dist-es/CloudSearchDomainClient.js.map +0 -1
  63. package/dist-es/commands/SearchCommand.js.map +0 -1
  64. package/dist-es/commands/SuggestCommand.js.map +0 -1
  65. package/dist-es/commands/UploadDocumentsCommand.js.map +0 -1
  66. package/dist-es/endpoints.js.map +0 -1
  67. package/dist-es/index.js.map +0 -1
  68. package/dist-es/models/index.js.map +0 -1
  69. package/dist-es/models/models_0.js.map +0 -1
  70. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  71. package/dist-es/runtimeConfig.browser.js.map +0 -1
  72. package/dist-es/runtimeConfig.js.map +0 -1
  73. package/dist-es/runtimeConfig.native.js.map +0 -1
  74. package/dist-es/runtimeConfig.shared.js.map +0 -1
  75. package/jest.config.js +0 -4
  76. package/src/CloudSearchDomain.ts +0 -116
  77. package/src/CloudSearchDomainClient.ts +0 -242
  78. package/src/commands/SearchCommand.ts +0 -104
  79. package/src/commands/SuggestCommand.ts +0 -102
  80. package/src/commands/UploadDocumentsCommand.ts +0 -111
  81. package/src/endpoints.ts +0 -57
  82. package/src/index.ts +0 -6
  83. package/src/models/index.ts +0 -1
  84. package/src/models/models_0.ts +0 -790
  85. package/src/protocols/Aws_restJson1.ts +0 -646
  86. package/src/runtimeConfig.browser.ts +0 -41
  87. package/src/runtimeConfig.native.ts +0 -17
  88. package/src/runtimeConfig.shared.ts +0 -17
  89. package/src/runtimeConfig.ts +0 -46
  90. package/tsconfig.es.json +0 -10
  91. package/tsconfig.json +0 -33
  92. package/tsconfig.types.json +0 -9
@@ -1,790 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- import { Readable } from "stream";
3
-
4
- /**
5
- * <p>Information about any problems encountered while processing a search request.</p>
6
- */
7
- export interface SearchException extends __SmithyException, $MetadataBearer {
8
- name: "SearchException";
9
- $fault: "client";
10
- /**
11
- * <p>A description of the error returned by the search service.</p>
12
- */
13
- message?: string;
14
- }
15
-
16
- export namespace SearchException {
17
- /**
18
- * @internal
19
- */
20
- export const filterSensitiveLog = (obj: SearchException): any => ({
21
- ...obj,
22
- });
23
- }
24
-
25
- export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
26
-
27
- /**
28
- * <p>Container for the parameters to the <code>Search</code> request.</p>
29
- */
30
- export interface SearchRequest {
31
- /**
32
- * <p>Retrieves a cursor value you can use to page through large result sets.
33
- * Use the <code>size</code> parameter to control the number of hits to include in each response. You can specify either the <code>cursor</code> or
34
- * <code>start</code> parameter in a request; they are mutually exclusive. To get the first cursor, set the cursor value to <code>initial</code>. In subsequent requests, specify the cursor value returned in the hits section of the response. </p>
35
- * <p>For more
36
- * information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/paginating-results.html">Paginating Results</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
37
- */
38
- cursor?: string;
39
-
40
- /**
41
- * <p>Defines one or more numeric expressions that can be used to sort results or specify search or filter
42
- * criteria. You can also specify expressions as return fields. </p>
43
- * <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>
44
- * <p><code>
45
- * {"expression1":"_score*rating", "expression2":"(1/rank)*year"}
46
- * </code> </p>
47
- * <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>
48
- * in the <i>Amazon CloudSearch Developer Guide</i>.</p>
49
- */
50
- expr?: string;
51
-
52
- /**
53
- * <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>
54
- * <p>You can specify the following faceting options:</p>
55
- * <ul>
56
- * <li>
57
- * <p><code>buckets</code> specifies an array of the facet values or
58
- * ranges to count. Ranges are specified using the same syntax that you use to search for a range of values.
59
- * For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-ranges.html">
60
- * Searching for a Range of Values</a> in the <i>Amazon CloudSearch Developer Guide</i>. Buckets are returned in the order they
61
- * are specified in the request. The <code>sort</code> and <code>size</code> options are
62
- * not valid if you specify <code>buckets</code>.</p>
63
- * </li>
64
- * <li>
65
- * <p><code>size</code> specifies the maximum number of facets to include in the results. By
66
- * default, Amazon CloudSearch returns counts for the top 10. The
67
- * <code>size</code> parameter is only valid when you specify
68
- * the <code>sort</code> option; it cannot be used in conjunction
69
- * with <code>buckets</code>.</p>
70
- * </li>
71
- * <li>
72
- * <p><code>sort</code> specifies how you want to sort the facets in
73
- * the results: <code>bucket</code> or <code>count</code>. Specify
74
- * <code>bucket</code> to sort alphabetically or numerically by
75
- * facet value (in ascending order). Specify <code>count</code> to
76
- * sort by the facet counts computed for each facet value (in
77
- * descending order). To retrieve facet counts for particular
78
- * values or ranges of values, use the <code>buckets</code> option
79
- * instead of <code>sort</code>. </p>
80
- * </li>
81
- * </ul>
82
- * <p>If no facet options are specified, facet counts are computed for all field values, the facets are sorted by facet count, and the top 10 facets are returned in the results.</p>
83
- *
84
- * <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>
85
- * <p><code>
86
- * {"year":{"buckets":["[1970,1979]","[1980,1989]","[1990,1999]","[2000,2009]","[2010,}"]}}
87
- * </code></p>
88
- *
89
- * <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
90
- * 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>
91
- * <p><code>
92
- * {"year":{"sort":"count","size":3}}
93
- * </code></p>
94
- *
95
- * <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>
96
- * <p><code>
97
- * {"year":{"sort":"bucket"}}
98
- * </code></p>
99
- * <p>For more
100
- * information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html">Getting and Using Facet Information</a>
101
- * in the <i>Amazon CloudSearch Developer Guide</i>.</p>
102
- */
103
- facet?: string;
104
-
105
- /**
106
- * <p>Specifies a structured query that filters the results of a search without affecting how the results are scored and sorted. You use <code>filterQuery</code> in conjunction with the <code>query</code> parameter to filter the documents that match the constraints specified in the <code>query</code> parameter. Specifying a filter controls only which matching documents are included in the results, it has no effect on how they are scored and sorted. The <code>filterQuery</code> parameter supports the full structured query syntax. </p>
107
- * <p>For more information about using filters, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/filtering-results.html">Filtering Matching Documents</a>
108
- * in the <i>Amazon CloudSearch Developer Guide</i>.</p>
109
- */
110
- filterQuery?: string;
111
-
112
- /**
113
- * <p>Retrieves highlights for matches in the specified <code>text</code> or
114
- * <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>
115
- * <p>You can specify the following highlight options:</p>
116
- * <ul>
117
- * <li>
118
- * <code>format</code>: specifies the format of the data in the
119
- * text field: <code>text</code> or <code>html</code>. When data is
120
- * returned as HTML, all non-alphanumeric characters are encoded.
121
- * The default is <code>html</code>.
122
- * </li>
123
- * <li>
124
- * <code>max_phrases</code>: specifies the maximum number of
125
- * occurrences of the search term(s) you want to highlight. By
126
- * default, the first occurrence is highlighted.
127
- * </li>
128
- * <li>
129
- * <code>pre_tag</code>: specifies the string to prepend to an
130
- * occurrence of a search term. The default for HTML highlights is
131
- * <code>&lt;em&gt;</code>. The default for text highlights is
132
- * <code>*</code>.
133
- * </li>
134
- * <li>
135
- * <code>post_tag</code>: specifies the string to append to an
136
- * occurrence of a search term. The default for HTML highlights is
137
- * <code>&lt;/em&gt;</code>. The default for text highlights is
138
- * <code>*</code>.
139
- * </li>
140
- * </ul>
141
- * <p>If no highlight options are specified for a field, the returned field text is treated as HTML and the first match is
142
- * highlighted with emphasis tags: <code>&lt;em>search-term&lt;/em&gt;</code>.</p>
143
- * <p>For example, the following request retrieves highlights for the <code>actors</code> and <code>title</code> fields.</p>
144
- * <p> <code>{
145
- * "actors": {},
146
- * "title": {"format": "text","max_phrases": 2,"pre_tag": "<b>","post_tag": "</b>"}
147
- * }</code></p>
148
- */
149
- highlight?: string;
150
-
151
- /**
152
- * <p>Enables partial results to be returned if one or more index partitions are unavailable. When your search index is partitioned across multiple search instances, by default Amazon CloudSearch only returns results if every partition can be queried. This means that the failure of a single search instance can result in 5xx (internal server) errors. When you enable partial results, Amazon CloudSearch returns whatever results are available and includes the percentage of documents searched in the search results (percent-searched). This enables you to more gracefully degrade your users' search experience. For example, rather than displaying no results, you could display the partial results and a message indicating that the results might be incomplete due to a temporary system outage.</p>
153
- */
154
- partial?: boolean;
155
-
156
- /**
157
- * <p>Specifies the search criteria for the request. How you specify the search
158
- * criteria depends on the query parser used for the request and the parser options
159
- * specified in the <code>queryOptions</code> parameter. By default,
160
- * the <code>simple</code> query parser is used to process requests. To use
161
- * the <code>structured</code>, <code>lucene</code>, or <code>dismax</code> query parser,
162
- * you must also specify the <code>queryParser</code> parameter. </p>
163
- * <p>For more information about specifying search criteria, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
164
- */
165
- query: string | undefined;
166
-
167
- /**
168
- * <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>
169
- *
170
- * <p>The options you can configure vary according to which parser you use:</p>
171
- * <ul>
172
- * <li><code>defaultOperator</code>: The default operator used to combine individual terms in the search string. For example: <code>defaultOperator: 'or'</code>. For the <code>dismax</code> parser, you specify a percentage that represents the percentage of terms in the search string (rounded down) that must match, rather than a default operator. A value of <code>0%</code> is the equivalent to OR, and a value of <code>100%</code> is equivalent to AND. The percentage must be specified as a value in the range 0-100 followed by the percent (%) symbol. For example, <code>defaultOperator: 50%</code>. Valid values: <code>and</code>, <code>or</code>, a percentage in the range 0%-100% (<code>dismax</code>). Default: <code>and</code> (<code>simple</code>, <code>structured</code>, <code>lucene</code>) or <code>100</code> (<code>dismax</code>). Valid for: <code>simple</code>, <code>structured</code>, <code>lucene</code>, and <code>dismax</code>.</li>
173
- * <li><code>fields</code>: An array of the fields to search when no fields are specified in a search. If no fields are specified in a search and this option is not specified, all text and text-array fields are searched. You can specify a weight for each field to control the relative importance of each field when Amazon CloudSearch calculates relevance scores. To specify a field weight, append a caret (<code>^</code>) symbol and the weight to the field name. For example, to boost the importance of the <code>title</code> field over the <code>description</code> field you could specify: <code>"fields":["title^5","description"]</code>. Valid values: The name of any configured field and an optional numeric value greater than zero. Default: All <code>text</code> and <code>text-array</code> fields. Valid for: <code>simple</code>, <code>structured</code>, <code>lucene</code>, and <code>dismax</code>.</li>
174
- * <li><code>operators</code>: An array of the operators or special characters you want to
175
- * disable for the simple query parser. If you disable the
176
- * <code>and</code>, <code>or</code>, or <code>not</code>
177
- * operators, the corresponding operators (<code>+</code>,
178
- * <code>|</code>, <code>-</code>) have no special meaning and
179
- * are dropped from the search string. Similarly, disabling
180
- * <code>prefix</code> disables the wildcard operator
181
- * (<code>*</code>) and disabling <code>phrase</code> disables
182
- * the ability to search for phrases by enclosing phrases in double
183
- * quotes. Disabling precedence disables the ability to control
184
- * order of precedence using parentheses. Disabling <code>near</code> disables
185
- * the ability to use the ~ operator to perform a sloppy phrase search.
186
- * Disabling the <code>fuzzy</code> operator disables the ability to use the ~ operator to perform a fuzzy search.
187
- * <code>escape</code> disables the ability to use a backslash
188
- * (<code>\</code>) to escape special characters within the
189
- * search string. Disabling whitespace is an advanced option that
190
- * prevents the parser from tokenizing on whitespace, which can be
191
- * useful for Vietnamese. (It prevents Vietnamese words from being
192
- * split incorrectly.) For example, you could disable all operators
193
- * other than the phrase operator to support just simple term and
194
- * phrase queries: <code>"operators":["and","not","or",
195
- * "prefix"]</code>. Valid values: <code>and</code>, <code>escape</code>,
196
- * <code>fuzzy</code>, <code>near</code>, <code>not</code>, <code>or</code>,
197
- * <code>phrase</code>, <code>precedence</code>, <code>prefix</code>,
198
- * <code>whitespace</code>. Default: All
199
- * operators and special characters are enabled. Valid for:
200
- * <code>simple</code>.</li>
201
- * <li><code>phraseFields</code>: An array of the <code>text</code> or <code>text-array</code> fields you want to use for
202
- * phrase searches. When the terms in the search string appear in
203
- * close proximity within a field, the field scores higher. You can
204
- * specify a weight for each field to boost that score. The
205
- * <code>phraseSlop</code> option controls how much the matches
206
- * can deviate from the search string and still be boosted. To
207
- * specify a field weight, append a caret (<code>^</code>) symbol
208
- * and the weight to the field name. For example, to boost phrase
209
- * matches in the <code>title</code> field over the
210
- * <code>abstract</code> field, you could specify:
211
- * <code>"phraseFields":["title^3",
212
- * "plot"]</code>
213
- * Valid values: The name of any <code>text</code> or
214
- * <code>text-array</code> field and an optional numeric value greater than zero. Default: No fields. If you don't specify any fields with <code>phraseFields</code>, proximity scoring is disabled even if <code>phraseSlop</code> is specified. Valid
215
- * for: <code>dismax</code>.</li>
216
- * <li><code>phraseSlop</code>: An integer value that specifies how much matches can deviate from the search phrase and still be boosted according to the weights specified in the <code>phraseFields</code> option; for example, <code>phraseSlop: 2</code>. You must also specify <code>phraseFields</code> to enable proximity scoring. Valid values: positive integers. Default: 0. Valid for: <code>dismax</code>.</li>
217
- * <li><code>explicitPhraseSlop</code>: An integer value that specifies how much a match can deviate from the search phrase when the phrase is enclosed in double quotes in the search string. (Phrases that exceed this proximity distance are not considered a match.) For example, to specify a slop of three for dismax phrase queries, you would specify <code>"explicitPhraseSlop":3</code>. Valid values: positive integers. Default: 0. Valid for: <code>dismax</code>.</li>
218
- * <li><code>tieBreaker</code>: When a term in the search string is found in a document's field, a score is calculated for that field based on how common the word is in that field compared to other documents. If the term occurs in multiple fields within a document, by default only the highest scoring field contributes to the document's overall score. You can specify a <code>tieBreaker</code> value to enable the matches in lower-scoring fields to contribute to the document's score. That way, if two documents have the same max field score for a particular term, the score for the document that has matches in more fields will be higher. The formula for calculating the score with a tieBreaker is <code>(max field score) + (tieBreaker) * (sum of the scores for the rest of the matching fields)</code>.
219
- *
220
- * Set <code>tieBreaker</code> to 0 to disregard all but the highest scoring field (pure max): <code>"tieBreaker":0</code>. Set to 1 to sum the scores from all fields (pure sum): <code>"tieBreaker":1</code>. Valid values: 0.0 to 1.0. Default: 0.0. Valid for: <code>dismax</code>.
221
- * </li>
222
- * </ul>
223
- */
224
- queryOptions?: string;
225
-
226
- /**
227
- * <p>Specifies which
228
- * query parser to use to process the request. If <code>queryParser</code> is not specified, Amazon CloudSearch
229
- * uses the <code>simple</code> query parser. </p>
230
- * <p>Amazon CloudSearch supports four query parsers:</p>
231
- * <ul>
232
- * <li>
233
- * <code>simple</code>: perform simple searches of <code>text</code> and
234
- * <code>text-array</code> fields. By default, the
235
- * <code>simple</code> query parser searches all
236
- * <code>text</code> and <code>text-array</code> fields. You
237
- * can specify which fields to search by with the
238
- * <code>queryOptions</code> parameter. If you prefix a search
239
- * term with a plus sign (+) documents must contain the term to be considered a match.
240
- * (This is the default, unless you configure the default operator with the <code>queryOptions</code> parameter.)
241
- * You can use the <code>-</code> (NOT), <code>|</code>
242
- * (OR), and <code>*</code> (wildcard) operators to exclude
243
- * particular terms, find results that match any of the specified
244
- * terms, or search for a prefix. To search for a phrase rather
245
- * than individual terms, enclose the phrase in double quotes. For
246
- * more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-text.html">Searching for Text</a> in the <i>Amazon CloudSearch Developer Guide</i>.
247
- * </li>
248
- * <li>
249
- * <code>structured</code>: perform advanced searches by combining
250
- * multiple expressions to define the search criteria. You can also search
251
- * within particular fields, search for values and ranges of values, and use
252
- * advanced options such as term boosting, <code>matchall</code>, and <code>near</code>.
253
- * For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-compound-queries.html">Constructing Compound Queries</a> in the <i>Amazon CloudSearch Developer Guide</i>.
254
- * </li>
255
- * <li>
256
- * <code>lucene</code>: search using the Apache Lucene query parser syntax.
257
- * For more information, see <a href="http://lucene.apache.org/core/4_6_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description">Apache Lucene Query Parser Syntax</a>.
258
- * </li>
259
- * <li>
260
- * <code>dismax</code>: search using the simplified subset of the Apache Lucene query parser syntax
261
- * defined by the DisMax query parser.
262
- * For more information, see <a href="http://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax">DisMax Query Parser Syntax</a>.
263
- * </li>
264
- *
265
- * </ul>
266
- */
267
- queryParser?: QueryParser | string;
268
-
269
- /**
270
- * <p>Specifies the field and expression values to include in the response. Multiple fields or expressions are specified as a comma-separated list. By default, a search response includes all
271
- * return enabled fields (<code>_all_fields</code>).
272
- * To return only the document IDs for the matching documents,
273
- * specify <code>_no_fields</code>.
274
- * To retrieve the relevance score calculated for each document,
275
- * specify <code>_score</code>. </p>
276
- */
277
- return?: string;
278
-
279
- /**
280
- * <p>Specifies the maximum number of search hits to include in the response. </p>
281
- */
282
- size?: number;
283
-
284
- /**
285
- * <p>Specifies the fields or custom expressions to use to sort the search
286
- * results. Multiple fields or expressions are specified as a comma-separated list.
287
- * You must specify the sort direction (<code>asc</code> or
288
- * <code>desc</code>) for each field; for example, <code>year
289
- * desc,title asc</code>. To use a field to sort results, the field must be sort-enabled in
290
- * the domain configuration. Array type fields cannot be used for sorting.
291
- * If no <code>sort</code> parameter is specified, results are sorted by
292
- * their default relevance scores in descending order: <code>_score
293
- * desc</code>. You can also sort by document ID
294
- * (<code>_id asc</code>) and version (<code>_version desc</code>).</p>
295
- * <p>For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/sorting-results.html">Sorting Results</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
296
- */
297
- sort?: string;
298
-
299
- /**
300
- * <p>Specifies the offset of the first search hit you want to return. Note that the result set is zero-based; the first result is at index 0. You can specify either the <code>start</code> or <code>cursor</code> parameter in a request, they are mutually exclusive. </p>
301
- * <p>For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/paginating-results.html">Paginating Results</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
302
- */
303
- start?: number;
304
-
305
- /**
306
- * <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>
307
- * <code>{"FIELD-A":{},"FIELD-B":{}}</code>
308
- * <p>There are currently no options supported for statistics.</p>
309
- */
310
- stats?: string;
311
- }
312
-
313
- export namespace SearchRequest {
314
- /**
315
- * @internal
316
- */
317
- export const filterSensitiveLog = (obj: SearchRequest): any => ({
318
- ...obj,
319
- });
320
- }
321
-
322
- /**
323
- * <p>A container for facet information. </p>
324
- */
325
- export interface Bucket {
326
- /**
327
- * <p>The facet value being counted.</p>
328
- */
329
- value?: string;
330
-
331
- /**
332
- * <p>The number of hits that contain the facet value in the specified facet field.</p>
333
- */
334
- count?: number;
335
- }
336
-
337
- export namespace Bucket {
338
- /**
339
- * @internal
340
- */
341
- export const filterSensitiveLog = (obj: Bucket): any => ({
342
- ...obj,
343
- });
344
- }
345
-
346
- /**
347
- * <p>A container for the calculated facet values and counts.</p>
348
- */
349
- export interface BucketInfo {
350
- /**
351
- * <p>A list of the calculated facet values and counts.</p>
352
- */
353
- buckets?: Bucket[];
354
- }
355
-
356
- export namespace BucketInfo {
357
- /**
358
- * @internal
359
- */
360
- export const filterSensitiveLog = (obj: BucketInfo): any => ({
361
- ...obj,
362
- });
363
- }
364
-
365
- /**
366
- * <p>Information about a document that matches the search request.</p>
367
- */
368
- export interface Hit {
369
- /**
370
- * <p>The document ID of a document that matches the search request.</p>
371
- */
372
- id?: string;
373
-
374
- /**
375
- * <p>The fields returned from a document that matches the search request.</p>
376
- */
377
- fields?: { [key: string]: string[] };
378
-
379
- /**
380
- * <p>The expressions returned from a document that matches the search request.</p>
381
- */
382
- exprs?: { [key: string]: string };
383
-
384
- /**
385
- * <p>The highlights returned from a document that matches the search request.</p>
386
- */
387
- highlights?: { [key: string]: string };
388
- }
389
-
390
- export namespace Hit {
391
- /**
392
- * @internal
393
- */
394
- export const filterSensitiveLog = (obj: Hit): any => ({
395
- ...obj,
396
- });
397
- }
398
-
399
- /**
400
- * <p>The collection of documents that match the search request.</p>
401
- */
402
- export interface Hits {
403
- /**
404
- * <p>The total number of documents that match the search request.</p>
405
- */
406
- found?: number;
407
-
408
- /**
409
- * <p>The index of the first matching document.</p>
410
- */
411
- start?: number;
412
-
413
- /**
414
- * <p>A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.</p>
415
- */
416
- cursor?: string;
417
-
418
- /**
419
- * <p>A document that matches the search request.</p>
420
- */
421
- hit?: Hit[];
422
- }
423
-
424
- export namespace Hits {
425
- /**
426
- * @internal
427
- */
428
- export const filterSensitiveLog = (obj: Hits): any => ({
429
- ...obj,
430
- });
431
- }
432
-
433
- /**
434
- * <p>The statistics for a field calculated in the request.</p>
435
- */
436
- export interface FieldStats {
437
- /**
438
- * <p>The minimum value found in the specified field in the result set.</p>
439
- * <p>If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, or <code>double-array</code>), <code>min</code> is the string representation of a double-precision 64-bit floating point value. If the field is <code>date</code> or <code>date-array</code>, <code>min</code> is the string representation of a date with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: yyyy-mm-ddTHH:mm:ss.SSSZ.</p>
440
- */
441
- min?: string;
442
-
443
- /**
444
- * <p>The maximum value found in the specified field in the result set.</p>
445
- * <p>If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, or <code>double-array</code>), <code>max</code> is the string representation of a double-precision 64-bit floating point value. If the field is <code>date</code> or <code>date-array</code>, <code>max</code> is the string representation of a date with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: yyyy-mm-ddTHH:mm:ss.SSSZ.</p>
446
- */
447
- max?: string;
448
-
449
- /**
450
- * <p>The number of documents that contain a value in the specified field in the result set.</p>
451
- */
452
- count?: number;
453
-
454
- /**
455
- * <p>The number of documents that do not contain a value in the specified field in the result set.</p>
456
- */
457
- missing?: number;
458
-
459
- /**
460
- * <p>The sum of the field values across the documents in the result set. <code>null</code> for date fields.</p>
461
- */
462
- sum?: number;
463
-
464
- /**
465
- * <p>The sum of all field values in the result set squared.</p>
466
- */
467
- sumOfSquares?: number;
468
-
469
- /**
470
- * <p>The average of the values found in the specified field in the result set.</p>
471
- * <p>If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, or <code>double-array</code>), <code>mean</code> is the string representation of a double-precision 64-bit floating point value. If the field is <code>date</code> or <code>date-array</code>, <code>mean</code> is the string representation of a date with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: yyyy-mm-ddTHH:mm:ss.SSSZ.</p>
472
- */
473
- mean?: string;
474
-
475
- /**
476
- * <p>The standard deviation of the values in the specified field in the result set.</p>
477
- */
478
- stddev?: number;
479
- }
480
-
481
- export namespace FieldStats {
482
- /**
483
- * @internal
484
- */
485
- export const filterSensitiveLog = (obj: FieldStats): any => ({
486
- ...obj,
487
- });
488
- }
489
-
490
- /**
491
- * <p>Contains the resource id (<code>rid</code>) and the time it took to process the request (<code>timems</code>).</p>
492
- */
493
- export interface SearchStatus {
494
- /**
495
- * <p>How long it took to process the request, in milliseconds.</p>
496
- */
497
- timems?: number;
498
-
499
- /**
500
- * <p>The encrypted resource ID for the request.</p>
501
- */
502
- rid?: string;
503
- }
504
-
505
- export namespace SearchStatus {
506
- /**
507
- * @internal
508
- */
509
- export const filterSensitiveLog = (obj: SearchStatus): any => ({
510
- ...obj,
511
- });
512
- }
513
-
514
- /**
515
- * <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>
516
- */
517
- export interface SearchResponse {
518
- /**
519
- * <p>The status information returned for the search request.</p>
520
- */
521
- status?: SearchStatus;
522
-
523
- /**
524
- * <p>The documents that match the search criteria.</p>
525
- */
526
- hits?: Hits;
527
-
528
- /**
529
- * <p>The requested facet information.</p>
530
- */
531
- facets?: { [key: string]: BucketInfo };
532
-
533
- /**
534
- * <p>The requested field statistics information.</p>
535
- */
536
- stats?: { [key: string]: FieldStats };
537
- }
538
-
539
- export namespace SearchResponse {
540
- /**
541
- * @internal
542
- */
543
- export const filterSensitiveLog = (obj: SearchResponse): any => ({
544
- ...obj,
545
- });
546
- }
547
-
548
- /**
549
- * <p>Container for the parameters to the <code>Suggest</code> request.</p>
550
- */
551
- export interface SuggestRequest {
552
- /**
553
- * <p>Specifies the string for which you want to get suggestions.</p>
554
- */
555
- query: string | undefined;
556
-
557
- /**
558
- * <p>Specifies the name of the suggester to use to find suggested matches.</p>
559
- */
560
- suggester: string | undefined;
561
-
562
- /**
563
- * <p>Specifies the maximum number of suggestions to return. </p>
564
- */
565
- size?: number;
566
- }
567
-
568
- export namespace SuggestRequest {
569
- /**
570
- * @internal
571
- */
572
- export const filterSensitiveLog = (obj: SuggestRequest): any => ({
573
- ...obj,
574
- });
575
- }
576
-
577
- /**
578
- * <p>Contains the resource id (<code>rid</code>) and the time it took to process the request (<code>timems</code>).</p>
579
- */
580
- export interface SuggestStatus {
581
- /**
582
- * <p>How long it took to process the request, in milliseconds.</p>
583
- */
584
- timems?: number;
585
-
586
- /**
587
- * <p>The encrypted resource ID for the request.</p>
588
- */
589
- rid?: string;
590
- }
591
-
592
- export namespace SuggestStatus {
593
- /**
594
- * @internal
595
- */
596
- export const filterSensitiveLog = (obj: SuggestStatus): any => ({
597
- ...obj,
598
- });
599
- }
600
-
601
- /**
602
- * <p>An autocomplete suggestion that matches the query string specified in a <code>SuggestRequest</code>. </p>
603
- */
604
- export interface SuggestionMatch {
605
- /**
606
- * <p>The string that matches the query string specified in the <code>SuggestRequest</code>. </p>
607
- */
608
- suggestion?: string;
609
-
610
- /**
611
- * <p>The relevance score of a suggested match.</p>
612
- */
613
- score?: number;
614
-
615
- /**
616
- * <p>The document ID of the suggested document.</p>
617
- */
618
- id?: string;
619
- }
620
-
621
- export namespace SuggestionMatch {
622
- /**
623
- * @internal
624
- */
625
- export const filterSensitiveLog = (obj: SuggestionMatch): any => ({
626
- ...obj,
627
- });
628
- }
629
-
630
- /**
631
- * <p>Container for the suggestion information returned in a <code>SuggestResponse</code>.</p>
632
- */
633
- export interface SuggestModel {
634
- /**
635
- * <p>The query string specified in the suggest request.</p>
636
- */
637
- query?: string;
638
-
639
- /**
640
- * <p>The number of documents that were found to match the query string.</p>
641
- */
642
- found?: number;
643
-
644
- /**
645
- * <p>The documents that match the query string.</p>
646
- */
647
- suggestions?: SuggestionMatch[];
648
- }
649
-
650
- export namespace SuggestModel {
651
- /**
652
- * @internal
653
- */
654
- export const filterSensitiveLog = (obj: SuggestModel): any => ({
655
- ...obj,
656
- });
657
- }
658
-
659
- /**
660
- * <p>Contains the response to a <code>Suggest</code> request.</p>
661
- */
662
- export interface SuggestResponse {
663
- /**
664
- * <p>The status of a <code>SuggestRequest</code>. Contains the resource ID (<code>rid</code>) and how long it took to process the request (<code>timems</code>).</p>
665
- */
666
- status?: SuggestStatus;
667
-
668
- /**
669
- * <p>Container for the matching search suggestion information.</p>
670
- */
671
- suggest?: SuggestModel;
672
- }
673
-
674
- export namespace SuggestResponse {
675
- /**
676
- * @internal
677
- */
678
- export const filterSensitiveLog = (obj: SuggestResponse): any => ({
679
- ...obj,
680
- });
681
- }
682
-
683
- /**
684
- * <p>Information about any problems encountered while processing an upload request.</p>
685
- */
686
- export interface DocumentServiceException extends __SmithyException, $MetadataBearer {
687
- name: "DocumentServiceException";
688
- $fault: "client";
689
- /**
690
- * <p>The return status of a document upload request, <code>error</code> or <code>success</code>.</p>
691
- */
692
- status?: string;
693
-
694
- /**
695
- * <p>The description of the errors returned by the document service.</p>
696
- */
697
- message?: string;
698
- }
699
-
700
- export namespace DocumentServiceException {
701
- /**
702
- * @internal
703
- */
704
- export const filterSensitiveLog = (obj: DocumentServiceException): any => ({
705
- ...obj,
706
- });
707
- }
708
-
709
- export type ContentType = "application/json" | "application/xml";
710
-
711
- /**
712
- * <p>Container for the parameters to the <code>UploadDocuments</code> request.</p>
713
- */
714
- export interface UploadDocumentsRequest {
715
- /**
716
- * <p>A batch of documents formatted in JSON or HTML.</p>
717
- */
718
- documents: Readable | ReadableStream | Blob | undefined;
719
-
720
- /**
721
- * <p>The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:</p>
722
- * <ul>
723
- * <li>application/json</li>
724
- * <li>application/xml</li>
725
- * </ul>
726
- */
727
- contentType: ContentType | string | undefined;
728
- }
729
-
730
- export namespace UploadDocumentsRequest {
731
- /**
732
- * @internal
733
- */
734
- export const filterSensitiveLog = (obj: UploadDocumentsRequest): any => ({
735
- ...obj,
736
- });
737
- }
738
-
739
- /**
740
- * <p>A warning returned by the document service when an issue is discovered while processing an upload request.</p>
741
- */
742
- export interface DocumentServiceWarning {
743
- /**
744
- * <p>The description for a warning returned by the document service.</p>
745
- */
746
- message?: string;
747
- }
748
-
749
- export namespace DocumentServiceWarning {
750
- /**
751
- * @internal
752
- */
753
- export const filterSensitiveLog = (obj: DocumentServiceWarning): any => ({
754
- ...obj,
755
- });
756
- }
757
-
758
- /**
759
- * <p>Contains the response to an <code>UploadDocuments</code> request.</p>
760
- */
761
- export interface UploadDocumentsResponse {
762
- /**
763
- * <p>The status of an <code>UploadDocumentsRequest</code>.</p>
764
- */
765
- status?: string;
766
-
767
- /**
768
- * <p>The number of documents that were added to the search domain.</p>
769
- */
770
- adds?: number;
771
-
772
- /**
773
- * <p>The number of documents that were deleted from the search domain.</p>
774
- */
775
- deletes?: number;
776
-
777
- /**
778
- * <p>Any warnings returned by the document service about the documents being uploaded.</p>
779
- */
780
- warnings?: DocumentServiceWarning[];
781
- }
782
-
783
- export namespace UploadDocumentsResponse {
784
- /**
785
- * @internal
786
- */
787
- export const filterSensitiveLog = (obj: UploadDocumentsResponse): any => ({
788
- ...obj,
789
- });
790
- }