---
title: "SearchEventEntity"
slug: "cloud-sdk-search-searchevententity-1539436"
abstract: "The SearchEventEntity interface represents data about the index document the site visitor interacts with in the search results."
---
# SearchEventEntity

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/server` |

Data about the index documents[^UUID-101b62f6-b640-ed11-1057-29646ebb9fb7_N67248fcfc8b58index] the site visitor interacts with in the search results.

## Signature

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

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| id | string | Required.The unique identifier of the entity. | "id_123" |
| entity | string | Required.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" |
| entityType | string | Optional.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" |
| uri | string | Optional.The URI of the entity. | "https://www.sitecore.com/resources/article/id_123" |
| attributes | Record<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" |
| sourceId | string | Optional.The ID of the source of the entity. | "sourceId123" |

[^UUID-101b62f6-b640-ed11-1057-29646ebb9fb7_N67248fcfc8b58index]: A JSON object that represents a single item in the content collection.
