---
title: UITextSearchDocumentIdentifier
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/uitextsearchdocumentidentifier
---

# UITextSearchDocumentIdentifier

A string that uniquely identifies a specific document when searching for matching text across multiple documents.

## Declaration

```occ
typedef id<NSCopying,NSObject> UITextSearchDocumentIdentifier;
```

## Discussion

Discussion The UITextSearching and UITextSearchAggregator protocols use this type to distinguish matches in a specific document from text in other documents with the same range.

## See Also

### Handling searches

- [performTextSearchWithQueryString:usingOptions:resultAggregator:](uikit/uitextsearching-53wjq/performtextsearchwithquerystring:usingoptions:resultaggregator:.md)
- [UITextSearchAggregator](uikit/uitextsearchaggregator-c.protocol.md)
- [compareFoundRange:toRange:inDocument:](uikit/uitextsearching-53wjq/comparefoundrange:torange:indocument:.md)
- [compareOrderFromDocument:toDocument:](uikit/uitextsearching-53wjq/compareorderfromdocument:todocument:.md)
