Skip to content

Searches for content in a specified knowledge base

Description

Searches for content in a specified knowledge base. Can be used to get a specific content resource by its name.

Usage

connectwisdomservice_search_content(knowledgeBaseId, maxResults,
  nextToken, searchExpression)

Arguments

  • knowledgeBaseId

    [required] The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.

  • maxResults

    The maximum number of results to return per page.

  • nextToken

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • searchExpression

    [required] The search expression to filter results.

Value

A list with the following syntax:

list(
  contentSummaries = list(
    list(
      contentArn = "string",
      contentId = "string",
      contentType = "string",
      knowledgeBaseArn = "string",
      knowledgeBaseId = "string",
      metadata = list(
        "string"
      ),
      name = "string",
      revisionId = "string",
      status = "CREATE_IN_PROGRESS"|"CREATE_FAILED"|"ACTIVE"|"DELETE_IN_PROGRESS"|"DELETE_FAILED"|"DELETED"|"UPDATE_FAILED",
      tags = list(
        "string"
      ),
      title = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$search_content(
  knowledgeBaseId = "string",
  maxResults = 123,
  nextToken = "string",
  searchExpression = list(
    filters = list(
      list(
        field = "NAME",
        operator = "EQUALS",
        value = "string"
      )
    )
  )
)