# Type Alias RetrievalSearchFilter

RetrievalSearchFilter: {
chunkMetadata?: RetrievalKeyValueListPair[];
dataRepositories?: string[];
dataRepositoryMetadata?: RetrievalKeyValueListPair[];
dataRepositoryType: DataRepositoryType;
documentMetadata?: RetrievalSearchDocumentKeyValueListPair[];
id: string;
remoteName?: string | null;
searchConfiguration?: RetrievalSearchConfiguration;
} & Record<string, any>

Limit scope of search to certain DataRepositories, Documents or Chunks.

#### Type Declaration

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

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

- ##### `Optional` dataRepositories?: string[]

  Specify [''] to search across all DataRepositories or give a specific list of DataRepository ids. Default: [ "" ].

- ##### `Optional` dataRepositoryMetadata?: RetrievalKeyValueListPair[]

  Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=['*'] Default: [].

- ##### dataRepositoryType: DataRepositoryType

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

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

- ##### id: string

  Identifier of this RetrievalSearchFilter - unique per request.

- ##### `Optional` remoteName?: string | null

  Destination Name of remote instance.

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

- ##### `Optional` searchConfiguration?: RetrievalSearchConfiguration

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