GoogleCloudContentwarehouseV1SearchDocumentsRequest

AI Overview😉

  • The potential purpose of this module is to provide a search function for documents within the Google Cloud Content Warehouse. It allows users to search for documents based on various criteria such as keywords, filters, and histogram facets. The module also provides features for pagination, sorting, and filtering of search results.
  • This module could impact search results by allowing for more specific and targeted searches. The use of histogram facets and filters enables users to narrow down their search results to specific attributes or properties of the documents. The pagination feature also allows users to retrieve a specific number of results at a time, making it easier to navigate large datasets. The sorting feature enables users to organize their search results in a way that is most relevant to their needs.
  • To be more favorable for this function, a website could optimize its document metadata and content to make it more searchable. This could include using relevant keywords and phrases, providing accurate and consistent metadata, and organizing documents in a way that makes it easy for the search function to retrieve and sort them. Additionally, websites could use the histogram facets and filters to provide more specific and targeted search results, and utilize the pagination feature to limit the number of results returned at a time.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest (google_api_content_warehouse v0.4.0)

Request message for DocumentService.SearchDocuments.

Attributes

  • documentQuery (type: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery.t, default: nil) - Query used to search against documents (keyword, filters, etc.).
  • histogramQueries (type: list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery.t), default: nil) - An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: count(string_histogram_facet): Count the number of matching entities for each distinct attribute value. Data types: Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: a-zA-Z. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
  • offset (type: integer(), default: nil) - An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching document, and 10 means to return from the 11th document. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page).
  • orderBy (type: String.t, default: nil) - The criteria determining how search results are sorted. For non-empty query, default is "relevance desc". For empty query, default is "upload_date desc". Supported options are: "relevance desc": By relevance descending, as determined by the API algorithms. "upload_date desc": By upload date descending. "upload_date": By upload date ascending. "update_date desc": By last updated date descending. "update_date": By last updated date ascending. "retrieval_importance desc": By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so.
  • pageSize (type: integer(), default: nil) - A limit on the number of documents returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100.
  • pageToken (type: String.t, default: nil) - The token specifying the current offset within search results. See SearchDocumentsResponse.next_page_token for an explanation of how to obtain the next set of query results.
  • qaSizeLimit (type: integer(), default: nil) - Experimental, do not use. The limit on the number of documents returned for the question-answering feature. To enable the question-answering feature, set [DocumentQuery].is_nl_query to true.
  • requestMetadata (type: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t, default: nil) - The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
  • requireTotalSize (type: boolean(), default: nil) - Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false.
  • totalResultSize (type: String.t, default: nil) - Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size.

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest{
    documentQuery:
      GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery.t()
      | nil,
    histogramQueries:
      [
        GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery.t()
      ]
      | nil,
    offset: integer() | nil,
    orderBy: String.t() | nil,
    pageSize: integer() | nil,
    pageToken: String.t() | nil,
    qaSizeLimit: integer() | nil,
    requestMetadata:
      GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t()
      | nil,
    requireTotalSize: boolean() | nil,
    totalResultSize: String.t() | nil
  }

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.