---
title: "documents(_:)"
framework: corespotlight
role: symbol
role_heading: Type Method
path: "corespotlight/spotlightsearchtool/contentdomain/documents(_:)"
---

# documents(_:)

Documents, notes, and text-heavy content with custom attribute mapping.

## Declaration

```swift
static func documents(_ config: SpotlightSearchTool.ContentDomain.Documents) -> SpotlightSearchTool.ContentDomain
```

## See Also

### Getting the documents domain

- [documents](corespotlight/spotlightsearchtool/contentdomain/documents-swift.type.property.md)
- [SpotlightSearchTool.ContentDomain.Documents](corespotlight/spotlightsearchtool/contentdomain/documents-swift.struct.md)
