1<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"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a search application. **Note:** This API requires an admin account to execute.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a search application. **Note:** This API requires an admin account to execute.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets the specified search application. **Note:** This API requires an admin account to execute.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Lists all search applications. **Note:** This API requires an admin account to execute.</p> 92<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"> 96 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p> 97<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> 98<p class="toc_element"> 99 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Updates a search application. **Note:** This API requires an admin account to execute.</p> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="close">close()</code> 104 <pre>Close httplib2 connections.</pre> 105</div> 106 107<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. 110 111Args: 112 body: object, The request body. 113 The object takes the form of: 114 115{ # SearchApplication 116 "dataSourceRestrictions": [ # Retrictions applied to the configurations. The maximum number of elements is 10. 117 { # Restriction on Datasource. 118 "filterOptions": [ # 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: "objecttype", "type" and "mimetype". For now, schema specific filters cannot be used to filter suggestions. 119 { # Filter options to be applied on query. 120 "filter": { # 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 "compositeFilter": { 122 "logicOperator": "A String", # The logic operator of the sub filter. 123 "subFilters": [ # Sub filters. 124 # Object with schema name: Filter 125 ], 126 }, 127 "valueFilter": { 128 "operatorName": "A String", # 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. 129 "value": { # Definition of a single value with generic type. # The value to be compared with. 130 "booleanValue": True or False, 131 "dateValue": { # 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. 132 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. 133 "month": 42, # Month of date. Must be from 1 to 12. 134 "year": 42, # Year of date. Must be from 1 to 9999. 135 }, 136 "doubleValue": 3.14, 137 "integerValue": "A String", 138 "stringValue": "A String", 139 "timestampValue": "A String", 140 }, 141 }, 142 }, 143 "objectType": "A String", # 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 "source": { # Defines sources for the suggest/search APIs. # The source of restriction. 147 "name": "A String", # Source name for content indexed by the Indexing API. 148 "predefinedSource": "A String", # Predefined content source for Google Apps. 149 }, 150 }, 151 ], 152 "defaultFacetOptions": [ # 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 "numFacetBuckets": 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100. 155 "objectType": "A String", # 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 "operatorName": "A String", # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions 157 "sourceName": "A String", # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used. 158 }, 159 ], 160 "defaultSortOptions": { # The default options for sorting the search results 161 "operatorName": "A String", # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. 162 "sortOrder": "A String", # Ascending is the default sort order 163 }, 164 "displayName": "A String", # Display name of the Search Application. The maximum length is 300 characters. 165 "enableAuditLog": True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs. 166 "name": "A String", # Name of the Search Application. Format: searchapplications/{application_id}. 167 "operationIds": [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field. 168 "A String", 169 ], 170 "queryInterpretationConfig": { # Default options to interpret user query. # The default options for query interpretation 171 "forceDisableSupplementalResults": True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. 172 "forceVerbatimMode": True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. 173 }, 174 "returnResultThumbnailUrls": True or False, # With each result we should return the URI for its thumbnail (when applicable) 175 "scoringConfig": { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results. 176 "disableFreshness": 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. 177 "disablePersonalization": True or False, # Whether to personalize the results. By default, personal signals will be used to boost results. 178 }, 179 "sourceConfig": [ # Configuration for a sources specified in data_source_restrictions. 180 { # Configurations for a source while processing a Search or Suggest request. 181 "crowdingConfig": { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" 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. 182 "numResults": 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. 183 "numSuggestions": 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. 184 }, 185 "scoringConfig": { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source. 186 "sourceImportance": "A String", # Importance of the source. 187 }, 188 "source": { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used. 189 "name": "A String", # Source name for content indexed by the Indexing API. 190 "predefinedSource": "A String", # Predefined content source for Google Apps. 191 }, 192 }, 193 ], 194} 195 196 x__xgafv: string, V1 error format. 197 Allowed values 198 1 - v1 error format 199 2 - v2 error format 200 201Returns: 202 An object of the form: 203 204 { # This resource represents a long-running operation that is the result of a network API call. 205 "done": 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. 206 "error": { # 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. 207 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 208 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 209 { 210 "a_key": "", # Properties of the object. Contains field @type with type URL. 211 }, 212 ], 213 "message": "A String", # 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. 214 }, 215 "metadata": { # 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. 216 "a_key": "", # Properties of the object. Contains field @type with type URL. 217 }, 218 "name": "A String", # 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}`. 219 "response": { # 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`. 220 "a_key": "", # Properties of the object. Contains field @type with type URL. 221 }, 222}</pre> 223</div> 224 225<div class="method"> 226 <code class="details" id="delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</code> 227 <pre>Deletes a search application. **Note:** This API requires an admin account to execute. 228 229Args: 230 name: string, The name of the search application to be deleted. Format: applications/{application_id}. (required) 231 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 232 x__xgafv: string, V1 error format. 233 Allowed values 234 1 - v1 error format 235 2 - v2 error format 236 237Returns: 238 An object of the form: 239 240 { # This resource represents a long-running operation that is the result of a network API call. 241 "done": 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. 242 "error": { # 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. 243 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 244 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 245 { 246 "a_key": "", # Properties of the object. Contains field @type with type URL. 247 }, 248 ], 249 "message": "A String", # 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. 250 }, 251 "metadata": { # 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. 252 "a_key": "", # Properties of the object. Contains field @type with type URL. 253 }, 254 "name": "A String", # 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}`. 255 "response": { # 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`. 256 "a_key": "", # Properties of the object. Contains field @type with type URL. 257 }, 258}</pre> 259</div> 260 261<div class="method"> 262 <code class="details" id="get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</code> 263 <pre>Gets the specified search application. **Note:** This API requires an admin account to execute. 264 265Args: 266 name: string, Name of the search application. Format: searchapplications/{application_id}. (required) 267 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 268 x__xgafv: string, V1 error format. 269 Allowed values 270 1 - v1 error format 271 2 - v2 error format 272 273Returns: 274 An object of the form: 275 276 { # SearchApplication 277 "dataSourceRestrictions": [ # Retrictions applied to the configurations. The maximum number of elements is 10. 278 { # Restriction on Datasource. 279 "filterOptions": [ # 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: "objecttype", "type" and "mimetype". For now, schema specific filters cannot be used to filter suggestions. 280 { # Filter options to be applied on query. 281 "filter": { # 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`. 282 "compositeFilter": { 283 "logicOperator": "A String", # The logic operator of the sub filter. 284 "subFilters": [ # Sub filters. 285 # Object with schema name: Filter 286 ], 287 }, 288 "valueFilter": { 289 "operatorName": "A String", # 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. 290 "value": { # Definition of a single value with generic type. # The value to be compared with. 291 "booleanValue": True or False, 292 "dateValue": { # 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. 293 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. 294 "month": 42, # Month of date. Must be from 1 to 12. 295 "year": 42, # Year of date. Must be from 1 to 9999. 296 }, 297 "doubleValue": 3.14, 298 "integerValue": "A String", 299 "stringValue": "A String", 300 "timestampValue": "A String", 301 }, 302 }, 303 }, 304 "objectType": "A String", # 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. 305 }, 306 ], 307 "source": { # Defines sources for the suggest/search APIs. # The source of restriction. 308 "name": "A String", # Source name for content indexed by the Indexing API. 309 "predefinedSource": "A String", # Predefined content source for Google Apps. 310 }, 311 }, 312 ], 313 "defaultFacetOptions": [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above. 314 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination. 315 "numFacetBuckets": 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100. 316 "objectType": "A String", # 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. 317 "operatorName": "A String", # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions 318 "sourceName": "A String", # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used. 319 }, 320 ], 321 "defaultSortOptions": { # The default options for sorting the search results 322 "operatorName": "A String", # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. 323 "sortOrder": "A String", # Ascending is the default sort order 324 }, 325 "displayName": "A String", # Display name of the Search Application. The maximum length is 300 characters. 326 "enableAuditLog": True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs. 327 "name": "A String", # Name of the Search Application. Format: searchapplications/{application_id}. 328 "operationIds": [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field. 329 "A String", 330 ], 331 "queryInterpretationConfig": { # Default options to interpret user query. # The default options for query interpretation 332 "forceDisableSupplementalResults": True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. 333 "forceVerbatimMode": True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. 334 }, 335 "returnResultThumbnailUrls": True or False, # With each result we should return the URI for its thumbnail (when applicable) 336 "scoringConfig": { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results. 337 "disableFreshness": 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. 338 "disablePersonalization": True or False, # Whether to personalize the results. By default, personal signals will be used to boost results. 339 }, 340 "sourceConfig": [ # Configuration for a sources specified in data_source_restrictions. 341 { # Configurations for a source while processing a Search or Suggest request. 342 "crowdingConfig": { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" 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. 343 "numResults": 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. 344 "numSuggestions": 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. 345 }, 346 "scoringConfig": { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source. 347 "sourceImportance": "A String", # Importance of the source. 348 }, 349 "source": { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used. 350 "name": "A String", # Source name for content indexed by the Indexing API. 351 "predefinedSource": "A String", # Predefined content source for Google Apps. 352 }, 353 }, 354 ], 355}</pre> 356</div> 357 358<div class="method"> 359 <code class="details" id="list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 360 <pre>Lists all search applications. **Note:** This API requires an admin account to execute. 361 362Args: 363 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 364 pageSize: integer, The maximum number of items to return. 365 pageToken: string, The next_page_token value returned from a previous List request, if any. The default value is 10 366 x__xgafv: string, V1 error format. 367 Allowed values 368 1 - v1 error format 369 2 - v2 error format 370 371Returns: 372 An object of the form: 373 374 { 375 "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. 376 "searchApplications": [ 377 { # SearchApplication 378 "dataSourceRestrictions": [ # Retrictions applied to the configurations. The maximum number of elements is 10. 379 { # Restriction on Datasource. 380 "filterOptions": [ # 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: "objecttype", "type" and "mimetype". For now, schema specific filters cannot be used to filter suggestions. 381 { # Filter options to be applied on query. 382 "filter": { # 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`. 383 "compositeFilter": { 384 "logicOperator": "A String", # The logic operator of the sub filter. 385 "subFilters": [ # Sub filters. 386 # Object with schema name: Filter 387 ], 388 }, 389 "valueFilter": { 390 "operatorName": "A String", # 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. 391 "value": { # Definition of a single value with generic type. # The value to be compared with. 392 "booleanValue": True or False, 393 "dateValue": { # 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. 394 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. 395 "month": 42, # Month of date. Must be from 1 to 12. 396 "year": 42, # Year of date. Must be from 1 to 9999. 397 }, 398 "doubleValue": 3.14, 399 "integerValue": "A String", 400 "stringValue": "A String", 401 "timestampValue": "A String", 402 }, 403 }, 404 }, 405 "objectType": "A String", # 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. 406 }, 407 ], 408 "source": { # Defines sources for the suggest/search APIs. # The source of restriction. 409 "name": "A String", # Source name for content indexed by the Indexing API. 410 "predefinedSource": "A String", # Predefined content source for Google Apps. 411 }, 412 }, 413 ], 414 "defaultFacetOptions": [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above. 415 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination. 416 "numFacetBuckets": 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100. 417 "objectType": "A String", # 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. 418 "operatorName": "A String", # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions 419 "sourceName": "A String", # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used. 420 }, 421 ], 422 "defaultSortOptions": { # The default options for sorting the search results 423 "operatorName": "A String", # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. 424 "sortOrder": "A String", # Ascending is the default sort order 425 }, 426 "displayName": "A String", # Display name of the Search Application. The maximum length is 300 characters. 427 "enableAuditLog": True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs. 428 "name": "A String", # Name of the Search Application. Format: searchapplications/{application_id}. 429 "operationIds": [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field. 430 "A String", 431 ], 432 "queryInterpretationConfig": { # Default options to interpret user query. # The default options for query interpretation 433 "forceDisableSupplementalResults": True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. 434 "forceVerbatimMode": True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. 435 }, 436 "returnResultThumbnailUrls": True or False, # With each result we should return the URI for its thumbnail (when applicable) 437 "scoringConfig": { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results. 438 "disableFreshness": 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. 439 "disablePersonalization": True or False, # Whether to personalize the results. By default, personal signals will be used to boost results. 440 }, 441 "sourceConfig": [ # Configuration for a sources specified in data_source_restrictions. 442 { # Configurations for a source while processing a Search or Suggest request. 443 "crowdingConfig": { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" 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. 444 "numResults": 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. 445 "numSuggestions": 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. 446 }, 447 "scoringConfig": { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source. 448 "sourceImportance": "A String", # Importance of the source. 449 }, 450 "source": { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used. 451 "name": "A String", # Source name for content indexed by the Indexing API. 452 "predefinedSource": "A String", # Predefined content source for Google Apps. 453 }, 454 }, 455 ], 456 }, 457 ], 458}</pre> 459</div> 460 461<div class="method"> 462 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 463 <pre>Retrieves the next page of results. 464 465Args: 466 previous_request: The request for the previous page. (required) 467 previous_response: The response from the request for the previous page. (required) 468 469Returns: 470 A request object that you can call 'execute()' on to request the next 471 page. Returns None if there are no more items in the collection. 472 </pre> 473</div> 474 475<div class="method"> 476 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code> 477 <pre>Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute. 478 479Args: 480 name: string, The name of the search application to be reset. Format: applications/{application_id}. (required) 481 body: object, The request body. 482 The object takes the form of: 483 484{ 485 "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. 486 "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 487 }, 488} 489 490 x__xgafv: string, V1 error format. 491 Allowed values 492 1 - v1 error format 493 2 - v2 error format 494 495Returns: 496 An object of the form: 497 498 { # This resource represents a long-running operation that is the result of a network API call. 499 "done": 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. 500 "error": { # 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. 501 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 502 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 503 { 504 "a_key": "", # Properties of the object. Contains field @type with type URL. 505 }, 506 ], 507 "message": "A String", # 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. 508 }, 509 "metadata": { # 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. 510 "a_key": "", # Properties of the object. Contains field @type with type URL. 511 }, 512 "name": "A String", # 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}`. 513 "response": { # 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`. 514 "a_key": "", # Properties of the object. Contains field @type with type URL. 515 }, 516}</pre> 517</div> 518 519<div class="method"> 520 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code> 521 <pre>Updates a search application. **Note:** This API requires an admin account to execute. 522 523Args: 524 name: string, Name of the Search Application. Format: searchapplications/{application_id}. (required) 525 body: object, The request body. 526 The object takes the form of: 527 528{ # SearchApplication 529 "dataSourceRestrictions": [ # Retrictions applied to the configurations. The maximum number of elements is 10. 530 { # Restriction on Datasource. 531 "filterOptions": [ # 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: "objecttype", "type" and "mimetype". For now, schema specific filters cannot be used to filter suggestions. 532 { # Filter options to be applied on query. 533 "filter": { # 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`. 534 "compositeFilter": { 535 "logicOperator": "A String", # The logic operator of the sub filter. 536 "subFilters": [ # Sub filters. 537 # Object with schema name: Filter 538 ], 539 }, 540 "valueFilter": { 541 "operatorName": "A String", # 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. 542 "value": { # Definition of a single value with generic type. # The value to be compared with. 543 "booleanValue": True or False, 544 "dateValue": { # 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. 545 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. 546 "month": 42, # Month of date. Must be from 1 to 12. 547 "year": 42, # Year of date. Must be from 1 to 9999. 548 }, 549 "doubleValue": 3.14, 550 "integerValue": "A String", 551 "stringValue": "A String", 552 "timestampValue": "A String", 553 }, 554 }, 555 }, 556 "objectType": "A String", # 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. 557 }, 558 ], 559 "source": { # Defines sources for the suggest/search APIs. # The source of restriction. 560 "name": "A String", # Source name for content indexed by the Indexing API. 561 "predefinedSource": "A String", # Predefined content source for Google Apps. 562 }, 563 }, 564 ], 565 "defaultFacetOptions": [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above. 566 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination. 567 "numFacetBuckets": 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100. 568 "objectType": "A String", # 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. 569 "operatorName": "A String", # Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions 570 "sourceName": "A String", # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used. 571 }, 572 ], 573 "defaultSortOptions": { # The default options for sorting the search results 574 "operatorName": "A String", # Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. 575 "sortOrder": "A String", # Ascending is the default sort order 576 }, 577 "displayName": "A String", # Display name of the Search Application. The maximum length is 300 characters. 578 "enableAuditLog": True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs. 579 "name": "A String", # Name of the Search Application. Format: searchapplications/{application_id}. 580 "operationIds": [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field. 581 "A String", 582 ], 583 "queryInterpretationConfig": { # Default options to interpret user query. # The default options for query interpretation 584 "forceDisableSupplementalResults": True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. 585 "forceVerbatimMode": True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. 586 }, 587 "returnResultThumbnailUrls": True or False, # With each result we should return the URI for its thumbnail (when applicable) 588 "scoringConfig": { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results. 589 "disableFreshness": 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. 590 "disablePersonalization": True or False, # Whether to personalize the results. By default, personal signals will be used to boost results. 591 }, 592 "sourceConfig": [ # Configuration for a sources specified in data_source_restrictions. 593 { # Configurations for a source while processing a Search or Suggest request. 594 "crowdingConfig": { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" 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. 595 "numResults": 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. 596 "numSuggestions": 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. 597 }, 598 "scoringConfig": { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source. 599 "sourceImportance": "A String", # Importance of the source. 600 }, 601 "source": { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used. 602 "name": "A String", # Source name for content indexed by the Indexing API. 603 "predefinedSource": "A String", # Predefined content source for Google Apps. 604 }, 605 }, 606 ], 607} 608 609 x__xgafv: string, V1 error format. 610 Allowed values 611 1 - v1 error format 612 2 - v2 error format 613 614Returns: 615 An object of the form: 616 617 { # This resource represents a long-running operation that is the result of a network API call. 618 "done": 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. 619 "error": { # 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. 620 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 621 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 622 { 623 "a_key": "", # Properties of the object. Contains field @type with type URL. 624 }, 625 ], 626 "message": "A String", # 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. 627 }, 628 "metadata": { # 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. 629 "a_key": "", # Properties of the object. Contains field @type with type URL. 630 }, 631 "name": "A String", # 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}`. 632 "response": { # 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`. 633 "a_key": "", # Properties of the object. Contains field @type with type URL. 634 }, 635}</pre> 636</div> 637 638</body></html>