blob: dce0532a2126850f1b6eda07e5f40124f531c7de [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a search application. **Note:** This API requires an admin account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a search application. **Note:** This API requires an admin account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Gets the specified search application. **Note:** This API requires an admin account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Lists all search applications. **Note:** This API requires an admin account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">Updates a search application. **Note:** This API requires an admin account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107<div class="method">
108 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
109 <pre>Creates a search application. **Note:** This API requires an admin account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700110
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 The object takes the form of:
114
115{ # SearchApplication
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800116 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
117 { # Restriction on Datasource.
118 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
119 { # Filter options to be applied on query.
120 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
121 &quot;compositeFilter&quot;: {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800123 &quot;subFilters&quot;: [ # Sub filters.
124 # Object with schema name: Filter
125 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800127 &quot;valueFilter&quot;: {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800128 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800129 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800130 &quot;booleanValue&quot;: True or False,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800131 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800132 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
133 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800134 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800135 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800136 &quot;doubleValue&quot;: 3.14,
137 &quot;integerValue&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800138 &quot;stringValue&quot;: &quot;A String&quot;,
139 &quot;timestampValue&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800140 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800141 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700142 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800143 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
144 },
145 ],
146 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800147 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800148 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700150 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800151 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
153 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
154 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
155 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
156 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
157 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
158 },
159 ],
160 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
161 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
162 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
163 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800164 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700165 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800166 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application. Format: searchapplications/{application_id}.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800167 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
168 &quot;A String&quot;,
169 ],
170 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
171 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
172 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
173 },
174 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
175 { # Configurations for a source while processing a Search or Suggest request.
176 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
177 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source. No limits will be set on results if this value is less than or equal to 0.
178 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
179 },
180 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
181 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
182 },
183 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
184 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
185 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
186 },
187 },
188 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800189}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196Returns:
197 An object of the form:
198
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800200 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
201 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
202 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
203 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
204 {
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 ],
208 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
209 },
210 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
211 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
212 },
213 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
214 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
217}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700218</div>
219
220<div class="method">
221 <code class="details" id="delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700222 <pre>Deletes a search application. **Note:** This API requires an admin account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700223
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 name: string, The name of the search application to be deleted. Format: applications/{application_id}. (required)
226 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 x__xgafv: string, V1 error format.
228 Allowed values
229 1 - v1 error format
230 2 - v2 error format
231
232Returns:
233 An object of the form:
234
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800236 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
237 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
238 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
239 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
240 {
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 ],
244 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
245 },
246 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
247 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
248 },
249 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
250 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
251 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
252 },
253}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254</div>
255
256<div class="method">
257 <code class="details" id="get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700258 <pre>Gets the specified search application. **Note:** This API requires an admin account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700259
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700261 name: string, Name of the search application. Format: searchapplications/{application_id}. (required)
262 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 x__xgafv: string, V1 error format.
264 Allowed values
265 1 - v1 error format
266 2 - v2 error format
267
268Returns:
269 An object of the form:
270
271 { # SearchApplication
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800272 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
273 { # Restriction on Datasource.
274 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
275 { # Filter options to be applied on query.
276 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
277 &quot;compositeFilter&quot;: {
278 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
279 &quot;subFilters&quot;: [ # Sub filters.
280 # Object with schema name: Filter
281 ],
282 },
283 &quot;valueFilter&quot;: {
284 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
285 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
286 &quot;booleanValue&quot;: True or False,
287 &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.
288 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
289 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
290 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800291 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800292 &quot;doubleValue&quot;: 3.14,
293 &quot;integerValue&quot;: &quot;A String&quot;,
294 &quot;stringValue&quot;: &quot;A String&quot;,
295 &quot;timestampValue&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800296 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700297 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800300 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 ],
302 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
303 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
304 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700305 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800306 },
307 ],
308 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
309 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
310 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
311 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
312 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
313 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
314 },
315 ],
316 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
317 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
318 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
319 },
320 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700321 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800322 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application. Format: searchapplications/{application_id}.
323 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
324 &quot;A String&quot;,
325 ],
326 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
327 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
328 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
329 },
330 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
331 { # Configurations for a source while processing a Search or Suggest request.
332 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
333 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source. No limits will be set on results if this value is less than or equal to 0.
334 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
335 },
336 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
337 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
338 },
339 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
340 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
341 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
342 },
343 },
344 ],
345}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700346</div>
347
348<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800349 <code class="details" id="list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700350 <pre>Lists all search applications. **Note:** This API requires an admin account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700351
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352Args:
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800353 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800354 pageSize: integer, The maximum number of items to return.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800355 pageToken: string, The next_page_token value returned from a previous List request, if any. The default value is 10
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 x__xgafv: string, V1 error format.
357 Allowed values
358 1 - v1 error format
359 2 - v2 error format
360
361Returns:
362 An object of the form:
363
364 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800365 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
366 &quot;searchApplications&quot;: [
367 { # SearchApplication
368 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
369 { # Restriction on Datasource.
370 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
371 { # Filter options to be applied on query.
372 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
373 &quot;compositeFilter&quot;: {
374 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
375 &quot;subFilters&quot;: [ # Sub filters.
376 # Object with schema name: Filter
377 ],
378 },
379 &quot;valueFilter&quot;: {
380 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
381 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
382 &quot;booleanValue&quot;: True or False,
383 &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.
384 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
385 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
386 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800387 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800388 &quot;doubleValue&quot;: 3.14,
389 &quot;integerValue&quot;: &quot;A String&quot;,
390 &quot;stringValue&quot;: &quot;A String&quot;,
391 &quot;timestampValue&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800392 },
393 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800394 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800395 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800396 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800397 ],
398 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
399 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
400 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800401 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800402 },
403 ],
404 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
405 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
406 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
407 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
408 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
409 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
410 },
411 ],
412 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
413 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
414 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800415 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800416 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700417 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800418 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application. Format: searchapplications/{application_id}.
419 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
420 &quot;A String&quot;,
421 ],
422 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
423 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
424 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
425 },
426 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
427 { # Configurations for a source while processing a Search or Suggest request.
428 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
429 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source. No limits will be set on results if this value is less than or equal to 0.
430 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
431 },
432 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
433 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
434 },
435 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
436 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
437 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
438 },
439 },
440 ],
441 },
442 ],
443}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700444</div>
445
446<div class="method">
447 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
448 <pre>Retrieves the next page of results.
449
450Args:
451 previous_request: The request for the previous page. (required)
452 previous_response: The response from the request for the previous page. (required)
453
454Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700456 page. Returns None if there are no more items in the collection.
457 </pre>
458</div>
459
460<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700461 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700462 <pre>Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700463
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700464Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700465 name: string, The name of the search application to be reset. Format: applications/{application_id}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700466 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700467 The object takes the form of:
468
469{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800470 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
471 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
472 },
473}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700474
475 x__xgafv: string, V1 error format.
476 Allowed values
477 1 - v1 error format
478 2 - v2 error format
479
480Returns:
481 An object of the form:
482
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700483 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800484 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
485 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
486 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
487 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
488 {
489 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
490 },
491 ],
492 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
493 },
494 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
495 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
496 },
497 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
498 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
500 },
501}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502</div>
503
504<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700505 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700506 <pre>Updates a search application. **Note:** This API requires an admin account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700507
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700508Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700509 name: string, Name of the Search Application. Format: searchapplications/{application_id}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700510 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 The object takes the form of:
512
513{ # SearchApplication
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800514 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
515 { # Restriction on Datasource.
516 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
517 { # Filter options to be applied on query.
518 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
519 &quot;compositeFilter&quot;: {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800520 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800521 &quot;subFilters&quot;: [ # Sub filters.
522 # Object with schema name: Filter
523 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700524 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800525 &quot;valueFilter&quot;: {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800526 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800527 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800528 &quot;booleanValue&quot;: True or False,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800529 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800530 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
531 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800532 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800533 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800534 &quot;doubleValue&quot;: 3.14,
535 &quot;integerValue&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800536 &quot;stringValue&quot;: &quot;A String&quot;,
537 &quot;timestampValue&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800538 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800539 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700540 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800541 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
542 },
543 ],
544 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800545 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800546 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800547 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700548 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800549 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800550 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
551 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
552 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
553 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
554 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
555 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
556 },
557 ],
558 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
559 &quot;operatorName&quot;: &quot;A String&quot;, # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
560 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
561 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800562 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700563 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800564 &quot;name&quot;: &quot;A String&quot;, # Name of the Search Application. Format: searchapplications/{application_id}.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800565 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
566 &quot;A String&quot;,
567 ],
568 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
569 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
570 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
571 },
572 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
573 { # Configurations for a source while processing a Search or Suggest request.
574 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
575 &quot;numResults&quot;: 42, # Maximum number of results allowed from a source. No limits will be set on results if this value is less than or equal to 0.
576 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
577 },
578 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
579 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
580 },
581 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
582 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
583 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
584 },
585 },
586 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800587}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588
589 x__xgafv: string, V1 error format.
590 Allowed values
591 1 - v1 error format
592 2 - v2 error format
593
594Returns:
595 An object of the form:
596
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700597 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800598 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
599 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
600 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
601 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
602 {
603 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
604 },
605 ],
606 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
607 },
608 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
609 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
610 },
611 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
612 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
613 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
614 },
615}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616</div>
617
618</body></html>