# Type Alias SearchFilter

SearchFilter: {
chunkMetadata?: KeyValueListPair[];
collectionIds: string[];
collectionMetadata?: KeyValueListPair[];
configuration: SearchConfiguration;
documentMetadata?: SearchDocumentKeyValueListPair[];
id: string;
} & Record<string, any>

Representation of the 'SearchFilter' schema.

#### Type Declaration

- ##### `Optional` chunkMetadata?: KeyValueListPair[]

  Restrict chunks considered during search to those with the given metadata. Default: []. Max Items: 2000.

- ##### collectionIds: string[]

- ##### `Optional` collectionMetadata?: KeyValueListPair[]

  Restrict collections considered during search to those annotated with the given metadata. Useful when combined with collections=['*'] Default: []. Max Items: 2000.

- ##### configuration: SearchConfiguration

- ##### `Optional` documentMetadata?: SearchDocumentKeyValueListPair[]

  Restrict documents considered during search to those annotated with the given metadata. Default: []. Max Items: 2000.

- ##### id: string

  Identifier of this SearchFilter - unique per request.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/document-grounding/dist/client/api/schema/search-filter.d.ts:7