Skip to content

unifiedSearch

Query

Search for entities matching a text description.

Response

Returns UnifiedSearchResponse

Arguments

NameTypeDescription
searchTextString!

The text description to search against.

entityTypesFilterUnifiedSearchEntityTypeInput

Optional filter against entity types. If provided, only entities whose types match the filter will be returned.

similarityThresholdFloat

Optional threshold in the range [0, 1]. If provided, only objects with a greater similarity score will be returned

siteIdID

Optional site id. If provided, only return entities from the given site.

firstInt!

Returns the first n entries from the search.

Default: 20

Example

query unifiedSearch(
$searchText: String!,
$entityTypes: FilterUnifiedSearchEntityTypeInput,
$similarityThreshold: Float,
$siteId: ID,
$first: Int!
) {
unifiedSearch(
searchText: $searchText,
entityTypes: $entityTypes,
similarityThreshold: $similarityThreshold,
siteId: $siteId,
first: $first
) {
entities {
entity {
__typename
}
similarityScore
context
}
}
}