1. Interfaces

SearchEventEntity

Version:
TypeInterface
Import path@sitecore-cloudsdk/search/browser

Data about the index documents the site visitor interacts with in the search results.

Signature

export interface SearchEventEntity {
  id: string;
  entity: string;
  entityType?: string;
  uri?: string;
  attributes?: Record<string, string>;
  sourceId?: string;
}

Properties

NameTypeDescriptionValue
idstringRequired.The unique identifier of the entity."id_123"
entitystringRequired.The index document the site visitor interacts with.For example, the blog post the site visitor clicks in the search results."content""category""product""store""video"
entityTypestringOptional.The subtype of the entity.For example, for the "content" entity, this value could be "blog entry" or "article". For the "category" entity, this value could be "electronics", "smartphones", or "video games"."blog entry""smartphones"
uristringOptional.The URI of the entity."https://www.sitecore.com/resources/article/id_123"
attributesRecord<string, string>Optional.Attributes for the entity that the site visitor interacts with.Set this value to an attribute or attributes defined in Sitecore Search.To find attributes in Sitecore Search, click Administration > Domain Settings > Attributes."name""description""brand""image_URL""price"
sourceIdstringOptional.The ID of the source of the entity."sourceId123"
If you have suggestions for improving this article, let us know!