blob: be050c697ee0c01de892a3c558bce03efedef30f [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="cloudsearch_v1.html">Cloud Search API</a> . <a href="cloudsearch_v1.settings.html">settings</a> . <a href="cloudsearch_v1.settings.searchapplications.html">searchapplications</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a search application.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a search application.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets the specified search application.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(pageToken=None, pageSize=None, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists all search applications.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Resets a search application to default settings. This will return an empty</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Updates a search application.</p>
98<h3>Method Details</h3>
99<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 <pre>Creates a search application.
102
Dan O'Mearadd494642020-05-01 07:42:23 -0700103**Note:** This API requires an admin account to execute.
104
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 The object takes the form of:
108
109{ # SearchApplication
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application.
111 # The maximum length is 300 characters.
112 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results.
113 # The sources specified here also have been included in
114 # data_source_restrictions
115 # above.
116 { # Specifies operators to return facet results for. There will be one
117 # FacetResult for every source_name/object_type/operator_name combination.
118 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet.
119 # Defaults to 10.
120 # Maximum value is 100.
121 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id}
122 # If empty, all data sources will be used.
123 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see
124 # cloudsearch.SchemaPropertyOptions
125 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to
126 # compute facets. If empty, then all objects will be used to compute facets.
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 },
128 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a # Configuration for ranking results.
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 # Search or
131 # Suggest request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will
133 # be used to boost results.
134 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 # as a ranking signal. Note that this setting is not available in the Admin
136 # UI.
Dan O'Mearadd494642020-05-01 07:42:23 -0700137 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 # &lt;br /&gt;Format: searchapplications/{application_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this
141 # schema. Output only field.
142 &quot;A String&quot;,
143 ],
144 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 # The maximum number of elements is 10.
146 { # Restriction on Datasource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 # are present, they are grouped by object type before joining.
149 # Filters with the same object type are joined conjunctively, then
150 # the resulting expressions are joined disjunctively.
151 #
152 # The maximum number of elements is 20.
153 #
154 # NOTE: Suggest API supports only few filters at the moment:
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 # &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 # For now, schema specific filters cannot be used to filter suggestions.
157 { # Filter options to be applied on query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700159 # approaches: &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 # **1. Setting a ValueFilter.** The name must match an operator_name defined in
161 # the schema for your data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700162 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700163 # **2. Setting a CompositeFilter.** The filters are evaluated
164 # using the logical operator. The top-level operators can only be either an AND
165 # or a NOT. AND can appear only at the top-most level. OR can appear only under
166 # a top-level AND.
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;valueFilter&quot;: {
168 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169 # The filter can work against both types of filters defined in the schema
170 # for your data source:
Dan O'Mearadd494642020-05-01 07:42:23 -0700171 # &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 # 1. `operator_name`, where the query filters results by the property
173 # that matches the value.
Dan O'Mearadd494642020-05-01 07:42:23 -0700174 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 # 2. `greater_than_operator_name` or `less_than_operator_name` in your
176 # schema. The query filters the results for the property values that are
177 # greater than or less than the supplied value in the query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
179 &quot;integerValue&quot;: &quot;A String&quot;,
180 &quot;stringValue&quot;: &quot;A String&quot;,
181 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
182 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
183 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
184 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700185 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;doubleValue&quot;: 3.14,
187 &quot;timestampValue&quot;: &quot;A String&quot;,
188 &quot;booleanValue&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700189 },
190 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;compositeFilter&quot;: {
192 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
193 &quot;subFilters&quot;: [ # Sub filters.
194 # Object with schema name: Filter
195 ],
196 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 # correspond to the name of the object that was registered within the
200 # definition of schema. The maximum length is 256 characters.
201 },
202 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
204 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
205 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206 # Indexing API.
207 },
208 },
209 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
211 { # Configurations for a source while processing a
212 # Search or
213 # Suggest request.
214 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
215 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
216 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
217 # Indexing API.
218 },
219 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results # The scoring configuration for the source.
220 # for a source.
221 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
222 },
223 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which # The crowding configuration for the source.
224 # multiple results from the same source or host &quot;crowd out&quot; other results,
225 # diminishing the quality of search for users. To foster better search quality
226 # and source diversity in search results, you can set a condition to reduce
227 # repetitive results by source.
228 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source.
229 # No limits will be set on results if this value is less than or equal to 0.
230 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source.
231 # No limits will be set on results if this value is less than or equal to 0.
232 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 },
234 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
236 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
237 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on.
238 # The corresponding property must be marked as
239 # sortable.
240 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241}
242
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248Returns:
249 An object of the form:
250
251 { # This resource represents a long-running operation that is the result of a
252 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700254 # If `true`, the operation is completed, and either `error` or `response` is
255 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700256 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700257 # method returns no data on success, such as `Delete`, the response is
258 # `google.protobuf.Empty`. If the original method is standard
259 # `Get`/`Create`/`Update`, the response should be the resource. For other
260 # methods, the response should have the type `XxxResponse`, where `Xxx`
261 # is the original method name. For example, if the original method name
262 # is `TakeSnapshot()`, the inferred response type is
263 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700265 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700267 # originally returns it. If you use the default HTTP mapping, the
268 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 # different programming environments, including REST APIs and RPC APIs. It is
271 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
272 # three pieces of data: error code, error message, and error details.
273 #
274 # You can find out more about this error model and how to work with it in the
275 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700277 # message types for APIs to use.
278 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 },
281 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
283 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
284 # user-facing error message should be localized and sent in the
285 # google.rpc.Status.details field, or localized by the client.
286 },
287 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
288 # contains progress information and common metadata such as create time.
289 # Some services might not provide such metadata. Any method that returns a
290 # long-running operation should document the metadata type, if any.
291 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 }</pre>
294</div>
295
296<div class="method">
297 <code class="details" id="delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</code>
298 <pre>Deletes a search application.
299
Dan O'Mearadd494642020-05-01 07:42:23 -0700300**Note:** This API requires an admin account to execute.
301
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700302Args:
303 name: string, The name of the search application to be deleted.
Dan O'Mearadd494642020-05-01 07:42:23 -0700304&lt;br /&gt;Format: applications/{application_id}. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
306Otherwise, ignore this field.
307 x__xgafv: string, V1 error format.
308 Allowed values
309 1 - v1 error format
310 2 - v2 error format
311
312Returns:
313 An object of the form:
314
315 { # This resource represents a long-running operation that is the result of a
316 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700318 # If `true`, the operation is completed, and either `error` or `response` is
319 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700320 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 # method returns no data on success, such as `Delete`, the response is
322 # `google.protobuf.Empty`. If the original method is standard
323 # `Get`/`Create`/`Update`, the response should be the resource. For other
324 # methods, the response should have the type `XxxResponse`, where `Xxx`
325 # is the original method name. For example, if the original method name
326 # is `TakeSnapshot()`, the inferred response type is
327 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700331 # originally returns it. If you use the default HTTP mapping, the
332 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 # different programming environments, including REST APIs and RPC APIs. It is
335 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
336 # three pieces of data: error code, error message, and error details.
337 #
338 # You can find out more about this error model and how to work with it in the
339 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341 # message types for APIs to use.
342 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 },
345 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
347 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
348 # user-facing error message should be localized and sent in the
349 # google.rpc.Status.details field, or localized by the client.
350 },
351 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
352 # contains progress information and common metadata such as create time.
353 # Some services might not provide such metadata. Any method that returns a
354 # long-running operation should document the metadata type, if any.
355 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 }</pre>
358</div>
359
360<div class="method">
361 <code class="details" id="get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</code>
362 <pre>Gets the specified search application.
363
Dan O'Mearadd494642020-05-01 07:42:23 -0700364**Note:** This API requires an admin account to execute.
365
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700366Args:
367 name: string, Name of the search application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700368&lt;br /&gt;Format: applications/{application_id}. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
370Otherwise, ignore this field.
371 x__xgafv: string, V1 error format.
372 Allowed values
373 1 - v1 error format
374 2 - v2 error format
375
376Returns:
377 An object of the form:
378
379 { # SearchApplication
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application.
381 # The maximum length is 300 characters.
382 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results.
383 # The sources specified here also have been included in
384 # data_source_restrictions
385 # above.
386 { # Specifies operators to return facet results for. There will be one
387 # FacetResult for every source_name/object_type/operator_name combination.
388 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet.
389 # Defaults to 10.
390 # Maximum value is 100.
391 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id}
392 # If empty, all data sources will be used.
393 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see
394 # cloudsearch.SchemaPropertyOptions
395 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to
396 # compute facets. If empty, then all objects will be used to compute facets.
Dan O'Mearadd494642020-05-01 07:42:23 -0700397 },
398 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a # Configuration for ranking results.
Dan O'Mearadd494642020-05-01 07:42:23 -0700400 # Search or
401 # Suggest request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will
403 # be used to boost results.
404 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used
Dan O'Mearadd494642020-05-01 07:42:23 -0700405 # as a ranking signal. Note that this setting is not available in the Admin
406 # UI.
Dan O'Mearadd494642020-05-01 07:42:23 -0700407 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 # &lt;br /&gt;Format: searchapplications/{application_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this
411 # schema. Output only field.
412 &quot;A String&quot;,
413 ],
414 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415 # The maximum number of elements is 10.
416 { # Restriction on Datasource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700418 # are present, they are grouped by object type before joining.
419 # Filters with the same object type are joined conjunctively, then
420 # the resulting expressions are joined disjunctively.
421 #
422 # The maximum number of elements is 20.
423 #
424 # NOTE: Suggest API supports only few filters at the moment:
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 # &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 # For now, schema specific filters cannot be used to filter suggestions.
427 { # Filter options to be applied on query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700429 # approaches: &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700430 # **1. Setting a ValueFilter.** The name must match an operator_name defined in
431 # the schema for your data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700432 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 # **2. Setting a CompositeFilter.** The filters are evaluated
434 # using the logical operator. The top-level operators can only be either an AND
435 # or a NOT. AND can appear only at the top-most level. OR can appear only under
436 # a top-level AND.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;valueFilter&quot;: {
438 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 # The filter can work against both types of filters defined in the schema
440 # for your data source:
Dan O'Mearadd494642020-05-01 07:42:23 -0700441 # &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700442 # 1. `operator_name`, where the query filters results by the property
443 # that matches the value.
Dan O'Mearadd494642020-05-01 07:42:23 -0700444 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 # 2. `greater_than_operator_name` or `less_than_operator_name` in your
446 # schema. The query filters the results for the property values that are
447 # greater than or less than the supplied value in the query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
449 &quot;integerValue&quot;: &quot;A String&quot;,
450 &quot;stringValue&quot;: &quot;A String&quot;,
451 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
452 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
453 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
454 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700455 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 &quot;doubleValue&quot;: 3.14,
457 &quot;timestampValue&quot;: &quot;A String&quot;,
458 &quot;booleanValue&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 },
460 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;compositeFilter&quot;: {
462 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
463 &quot;subFilters&quot;: [ # Sub filters.
464 # Object with schema name: Filter
465 ],
466 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700467 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700468 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700469 # correspond to the name of the object that was registered within the
470 # definition of schema. The maximum length is 256 characters.
471 },
472 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
474 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
475 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700476 # Indexing API.
477 },
478 },
479 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
481 { # Configurations for a source while processing a
482 # Search or
483 # Suggest request.
484 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
485 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
486 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
487 # Indexing API.
488 },
489 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results # The scoring configuration for the source.
490 # for a source.
491 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
492 },
493 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which # The crowding configuration for the source.
494 # multiple results from the same source or host &quot;crowd out&quot; other results,
495 # diminishing the quality of search for users. To foster better search quality
496 # and source diversity in search results, you can set a condition to reduce
497 # repetitive results by source.
498 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source.
499 # No limits will be set on results if this value is less than or equal to 0.
500 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source.
501 # No limits will be set on results if this value is less than or equal to 0.
502 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 },
504 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
506 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
507 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on.
508 # The corresponding property must be marked as
509 # sortable.
510 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 }</pre>
512</div>
513
514<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 <code class="details" id="list">list(pageToken=None, pageSize=None, debugOptions_enableDebugging=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700516 <pre>Lists all search applications.
517
Dan O'Mearadd494642020-05-01 07:42:23 -0700518**Note:** This API requires an admin account to execute.
519
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 pageToken: string, The next_page_token value returned from a previous List request, if any.
522&lt;br/&gt; The default value is 10
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 pageSize: integer, The maximum number of items to return.
524 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
525Otherwise, ignore this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 x__xgafv: string, V1 error format.
527 Allowed values
528 1 - v1 error format
529 2 - v2 error format
530
531Returns:
532 An object of the form:
533
534 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700536 # more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 &quot;searchApplications&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538 { # SearchApplication
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application.
540 # The maximum length is 300 characters.
541 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results.
542 # The sources specified here also have been included in
543 # data_source_restrictions
544 # above.
545 { # Specifies operators to return facet results for. There will be one
546 # FacetResult for every source_name/object_type/operator_name combination.
547 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet.
548 # Defaults to 10.
549 # Maximum value is 100.
550 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id}
551 # If empty, all data sources will be used.
552 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see
553 # cloudsearch.SchemaPropertyOptions
554 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to
555 # compute facets. If empty, then all objects will be used to compute facets.
Dan O'Mearadd494642020-05-01 07:42:23 -0700556 },
557 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a # Configuration for ranking results.
Dan O'Mearadd494642020-05-01 07:42:23 -0700559 # Search or
560 # Suggest request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will
562 # be used to boost results.
563 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used
Dan O'Mearadd494642020-05-01 07:42:23 -0700564 # as a ranking signal. Note that this setting is not available in the Admin
565 # UI.
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700568 # &lt;br /&gt;Format: searchapplications/{application_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this
570 # schema. Output only field.
571 &quot;A String&quot;,
572 ],
573 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700574 # The maximum number of elements is 10.
575 { # Restriction on Datasource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 # are present, they are grouped by object type before joining.
578 # Filters with the same object type are joined conjunctively, then
579 # the resulting expressions are joined disjunctively.
580 #
581 # The maximum number of elements is 20.
582 #
583 # NOTE: Suggest API supports only few filters at the moment:
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 # &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700585 # For now, schema specific filters cannot be used to filter suggestions.
586 { # Filter options to be applied on query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700588 # approaches: &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700589 # **1. Setting a ValueFilter.** The name must match an operator_name defined in
590 # the schema for your data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700591 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592 # **2. Setting a CompositeFilter.** The filters are evaluated
593 # using the logical operator. The top-level operators can only be either an AND
594 # or a NOT. AND can appear only at the top-most level. OR can appear only under
595 # a top-level AND.
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 &quot;valueFilter&quot;: {
597 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700598 # The filter can work against both types of filters defined in the schema
599 # for your data source:
Dan O'Mearadd494642020-05-01 07:42:23 -0700600 # &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700601 # 1. `operator_name`, where the query filters results by the property
602 # that matches the value.
Dan O'Mearadd494642020-05-01 07:42:23 -0700603 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700604 # 2. `greater_than_operator_name` or `less_than_operator_name` in your
605 # schema. The query filters the results for the property values that are
606 # greater than or less than the supplied value in the query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
608 &quot;integerValue&quot;: &quot;A String&quot;,
609 &quot;stringValue&quot;: &quot;A String&quot;,
610 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
611 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
612 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
613 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;doubleValue&quot;: 3.14,
616 &quot;timestampValue&quot;: &quot;A String&quot;,
617 &quot;booleanValue&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700618 },
619 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;compositeFilter&quot;: {
621 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
622 &quot;subFilters&quot;: [ # Sub filters.
623 # Object with schema name: Filter
624 ],
625 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700628 # correspond to the name of the object that was registered within the
629 # definition of schema. The maximum length is 256 characters.
630 },
631 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
633 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
634 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635 # Indexing API.
636 },
637 },
638 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
640 { # Configurations for a source while processing a
641 # Search or
642 # Suggest request.
643 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
644 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
645 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
646 # Indexing API.
647 },
648 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results # The scoring configuration for the source.
649 # for a source.
650 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
651 },
652 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which # The crowding configuration for the source.
653 # multiple results from the same source or host &quot;crowd out&quot; other results,
654 # diminishing the quality of search for users. To foster better search quality
655 # and source diversity in search results, you can set a condition to reduce
656 # repetitive results by source.
657 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source.
658 # No limits will be set on results if this value is less than or equal to 0.
659 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source.
660 # No limits will be set on results if this value is less than or equal to 0.
661 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700662 },
663 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
665 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
666 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on.
667 # The corresponding property must be marked as
668 # sortable.
669 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700670 },
671 ],
672 }</pre>
673</div>
674
675<div class="method">
676 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
677 <pre>Retrieves the next page of results.
678
679Args:
680 previous_request: The request for the previous page. (required)
681 previous_response: The response from the request for the previous page. (required)
682
683Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700685 page. Returns None if there are no more items in the collection.
686 </pre>
687</div>
688
689<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700690 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700691 <pre>Resets a search application to default settings. This will return an empty
692response.
693
Dan O'Mearadd494642020-05-01 07:42:23 -0700694**Note:** This API requires an admin account to execute.
695
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700696Args:
697 name: string, The name of the search application to be reset.
Dan O'Mearadd494642020-05-01 07:42:23 -0700698&lt;br /&gt;Format: applications/{application_id}. (required)
699 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700700 The object takes the form of:
701
702{
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
704 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705 # Otherwise, ignore this field.
706 },
707 }
708
709 x__xgafv: string, V1 error format.
710 Allowed values
711 1 - v1 error format
712 2 - v2 error format
713
714Returns:
715 An object of the form:
716
717 { # This resource represents a long-running operation that is the result of a
718 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700720 # If `true`, the operation is completed, and either `error` or `response` is
721 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700722 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700723 # method returns no data on success, such as `Delete`, the response is
724 # `google.protobuf.Empty`. If the original method is standard
725 # `Get`/`Create`/`Update`, the response should be the resource. For other
726 # methods, the response should have the type `XxxResponse`, where `Xxx`
727 # is the original method name. For example, if the original method name
728 # is `TakeSnapshot()`, the inferred response type is
729 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700731 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700732 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700733 # originally returns it. If you use the default HTTP mapping, the
734 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 # different programming environments, including REST APIs and RPC APIs. It is
737 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
738 # three pieces of data: error code, error message, and error details.
739 #
740 # You can find out more about this error model and how to work with it in the
741 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700743 # message types for APIs to use.
744 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746 },
747 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
749 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
750 # user-facing error message should be localized and sent in the
751 # google.rpc.Status.details field, or localized by the client.
752 },
753 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
754 # contains progress information and common metadata such as create time.
755 # Some services might not provide such metadata. Any method that returns a
756 # long-running operation should document the metadata type, if any.
757 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700758 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759 }</pre>
760</div>
761
762<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700763 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700764 <pre>Updates a search application.
765
Dan O'Mearadd494642020-05-01 07:42:23 -0700766**Note:** This API requires an admin account to execute.
767
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768Args:
769 name: string, Name of the Search Application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700770&lt;br /&gt;Format: searchapplications/{application_id}. (required)
771 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772 The object takes the form of:
773
774{ # SearchApplication
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application.
776 # The maximum length is 300 characters.
777 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results.
778 # The sources specified here also have been included in
779 # data_source_restrictions
780 # above.
781 { # Specifies operators to return facet results for. There will be one
782 # FacetResult for every source_name/object_type/operator_name combination.
783 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet.
784 # Defaults to 10.
785 # Maximum value is 100.
786 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id}
787 # If empty, all data sources will be used.
788 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see
789 # cloudsearch.SchemaPropertyOptions
790 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to
791 # compute facets. If empty, then all objects will be used to compute facets.
Dan O'Mearadd494642020-05-01 07:42:23 -0700792 },
793 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a # Configuration for ranking results.
Dan O'Mearadd494642020-05-01 07:42:23 -0700795 # Search or
796 # Suggest request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700797 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will
798 # be used to boost results.
799 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used
Dan O'Mearadd494642020-05-01 07:42:23 -0700800 # as a ranking signal. Note that this setting is not available in the Admin
801 # UI.
Dan O'Mearadd494642020-05-01 07:42:23 -0700802 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700803 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700804 # &lt;br /&gt;Format: searchapplications/{application_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700805 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this
806 # schema. Output only field.
807 &quot;A String&quot;,
808 ],
809 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700810 # The maximum number of elements is 10.
811 { # Restriction on Datasource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700813 # are present, they are grouped by object type before joining.
814 # Filters with the same object type are joined conjunctively, then
815 # the resulting expressions are joined disjunctively.
816 #
817 # The maximum number of elements is 20.
818 #
819 # NOTE: Suggest API supports only few filters at the moment:
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 # &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700821 # For now, schema specific filters cannot be used to filter suggestions.
822 { # Filter options to be applied on query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700824 # approaches: &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700825 # **1. Setting a ValueFilter.** The name must match an operator_name defined in
826 # the schema for your data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700827 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700828 # **2. Setting a CompositeFilter.** The filters are evaluated
829 # using the logical operator. The top-level operators can only be either an AND
830 # or a NOT. AND can appear only at the top-most level. OR can appear only under
831 # a top-level AND.
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 &quot;valueFilter&quot;: {
833 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700834 # The filter can work against both types of filters defined in the schema
835 # for your data source:
Dan O'Mearadd494642020-05-01 07:42:23 -0700836 # &lt;br/&gt;&lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700837 # 1. `operator_name`, where the query filters results by the property
838 # that matches the value.
Dan O'Mearadd494642020-05-01 07:42:23 -0700839 # &lt;br/&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 # 2. `greater_than_operator_name` or `less_than_operator_name` in your
841 # schema. The query filters the results for the property values that are
842 # greater than or less than the supplied value in the query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700843 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
844 &quot;integerValue&quot;: &quot;A String&quot;,
845 &quot;stringValue&quot;: &quot;A String&quot;,
846 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
847 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
848 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
849 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700851 &quot;doubleValue&quot;: 3.14,
852 &quot;timestampValue&quot;: &quot;A String&quot;,
853 &quot;booleanValue&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 },
855 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 &quot;compositeFilter&quot;: {
857 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
858 &quot;subFilters&quot;: [ # Sub filters.
859 # Object with schema name: Filter
860 ],
861 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700862 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 # correspond to the name of the object that was registered within the
865 # definition of schema. The maximum length is 256 characters.
866 },
867 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700868 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
869 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
870 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 # Indexing API.
872 },
873 },
874 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
876 { # Configurations for a source while processing a
877 # Search or
878 # Suggest request.
879 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
880 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
881 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the
882 # Indexing API.
883 },
884 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results # The scoring configuration for the source.
885 # for a source.
886 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
887 },
888 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which # The crowding configuration for the source.
889 # multiple results from the same source or host &quot;crowd out&quot; other results,
890 # diminishing the quality of search for users. To foster better search quality
891 # and source diversity in search results, you can set a condition to reduce
892 # repetitive results by source.
893 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source.
894 # No limits will be set on results if this value is less than or equal to 0.
895 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source.
896 # No limits will be set on results if this value is less than or equal to 0.
897 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700898 },
899 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700900 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
901 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
902 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on.
903 # The corresponding property must be marked as
904 # sortable.
905 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906}
907
908 x__xgafv: string, V1 error format.
909 Allowed values
910 1 - v1 error format
911 2 - v2 error format
912
913Returns:
914 An object of the form:
915
916 { # This resource represents a long-running operation that is the result of a
917 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700919 # If `true`, the operation is completed, and either `error` or `response` is
920 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700922 # method returns no data on success, such as `Delete`, the response is
923 # `google.protobuf.Empty`. If the original method is standard
924 # `Get`/`Create`/`Update`, the response should be the resource. For other
925 # methods, the response should have the type `XxxResponse`, where `Xxx`
926 # is the original method name. For example, if the original method name
927 # is `TakeSnapshot()`, the inferred response type is
928 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700929 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700930 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700931 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700932 # originally returns it. If you use the default HTTP mapping, the
933 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700934 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700935 # different programming environments, including REST APIs and RPC APIs. It is
936 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
937 # three pieces of data: error code, error message, and error details.
938 #
939 # You can find out more about this error model and how to work with it in the
940 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700942 # message types for APIs to use.
943 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700945 },
946 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
948 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
949 # user-facing error message should be localized and sent in the
950 # google.rpc.Status.details field, or localized by the client.
951 },
952 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
953 # contains progress information and common metadata such as create time.
954 # Some services might not provide such metadata. Any method that returns a
955 # long-running operation should document the metadata type, if any.
956 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700957 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700958 }</pre>
959</div>
960
961</body></html>