> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> Google Docs local sync: searchable entities, `.search()` filters, and operators.

The Google Docs plugin syncs data locally. Use `corsair.googledocs.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

<Info>
  **New to Corsair?** See [database operations](/concepts/database), [data synchronization](/concepts/integrations), and [multi-tenancy](/concepts/multi-tenancy).
</Info>

## Documents

Path: `googledocs.db.documents.search`

```ts theme={null}
const rows = await corsair.googledocs.db.documents.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field            | Type      | Operators                                  |
| ---------------- | --------- | ------------------------------------------ |
| `entity_id`      | `string`  | equals, contains, startsWith, endsWith, in |
| `id`             | `string`  | equals, contains, startsWith, endsWith, in |
| `documentId`     | `string`  | equals, contains, startsWith, endsWith, in |
| `title`          | `string`  | equals, contains, startsWith, endsWith, in |
| `revisionId`     | `string`  | equals, contains, startsWith, endsWith, in |
| `url`            | `string`  | equals, contains, startsWith, endsWith, in |
| `createdTime`    | `string`  | equals, contains, startsWith, endsWith, in |
| `modifiedTime`   | `string`  | equals, contains, startsWith, endsWith, in |
| `wordCount`      | `number`  | equals, gt, gte, lt, lte, in               |
| `headerCount`    | `number`  | equals, gt, gte, lt, lte, in               |
| `footerCount`    | `number`  | equals, gt, gte, lt, lte, in               |
| `footnoteCount`  | `number`  | equals, gt, gte, lt, lte, in               |
| `tableCount`     | `number`  | equals, gt, gte, lt, lte, in               |
| `imageCount`     | `number`  | equals, gt, gte, lt, lte, in               |
| `hasPlaceholder` | `boolean` | equals                                     |
| `hasKeyword`     | `boolean` | equals                                     |
| `hasSearchMatch` | `boolean` | equals                                     |
| `filePath`       | `string`  | equals, contains, startsWith, endsWith, in |
| `createdAt`      | `date`    | equals, before, after, between             |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***
