> ## 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

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

The SemanticScholar plugin syncs data locally. Use `corsair.semanticscholar.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>

## Author

Path: `semanticscholar.db.author.search`

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

### Searchable filters

| Field           | Type     | Operators                                  |
| --------------- | -------- | ------------------------------------------ |
| `entity_id`     | `string` | equals, contains, startsWith, endsWith, in |
| `authorId`      | `string` | equals, contains, startsWith, endsWith, in |
| `url`           | `string` | equals, contains, startsWith, endsWith, in |
| `name`          | `string` | equals, contains, startsWith, endsWith, in |
| `homepage`      | `string` | equals, contains, startsWith, endsWith, in |
| `paperCount`    | `number` | equals, gt, gte, lt, lte, in               |
| `citationCount` | `number` | equals, gt, gte, lt, lte, in               |
| `hIndex`        | `number` | equals, gt, gte, lt, lte, in               |

*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).*

***

## Author Summary

Path: `semanticscholar.db.authorSummary.search`

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

### Searchable filters

| Field       | Type     | Operators                                  |
| ----------- | -------- | ------------------------------------------ |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `authorId`  | `string` | equals, contains, startsWith, endsWith, in |
| `name`      | `string` | equals, contains, startsWith, endsWith, in |

*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).*

***

## Autocomplete Match

Path: `semanticscholar.db.autocompleteMatch.search`

```ts theme={null}
const rows = await corsair.semanticscholar.db.autocompleteMatch.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 |
| `title`       | `string` | equals, contains, startsWith, endsWith, in |
| `authorsYear` | `string` | equals, contains, startsWith, endsWith, in |

*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).*

***

## Citation

Path: `semanticscholar.db.citation.search`

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

### Searchable filters

| Field           | Type      | Operators                                  |
| --------------- | --------- | ------------------------------------------ |
| `entity_id`     | `string`  | equals, contains, startsWith, endsWith, in |
| `isInfluential` | `boolean` | equals                                     |

*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).*

***

## Dataset

Path: `semanticscholar.db.dataset.search`

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

### Searchable filters

| Field         | Type     | Operators                                  |
| ------------- | -------- | ------------------------------------------ |
| `entity_id`   | `string` | equals, contains, startsWith, endsWith, in |
| `name`        | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `README`      | `string` | equals, contains, startsWith, endsWith, in |

*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).*

***

## Dataset Diff

Path: `semanticscholar.db.datasetDiff.search`

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

### Searchable filters

| Field         | Type     | Operators                                  |
| ------------- | -------- | ------------------------------------------ |
| `entity_id`   | `string` | equals, contains, startsWith, endsWith, in |
| `fromRelease` | `string` | equals, contains, startsWith, endsWith, in |
| `toRelease`   | `string` | equals, contains, startsWith, endsWith, in |

*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).*

***

## Dataset Release

Path: `semanticscholar.db.datasetRelease.search`

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

### Searchable filters

| Field        | Type     | Operators                                  |
| ------------ | -------- | ------------------------------------------ |
| `entity_id`  | `string` | equals, contains, startsWith, endsWith, in |
| `release_id` | `string` | equals, contains, startsWith, endsWith, in |
| `releaseId`  | `string` | equals, contains, startsWith, endsWith, in |

*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).*

***

## Paper

Path: `semanticscholar.db.paper.search`

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

### Searchable filters

| Field                      | Type      | Operators                                  |
| -------------------------- | --------- | ------------------------------------------ |
| `entity_id`                | `string`  | equals, contains, startsWith, endsWith, in |
| `paperId`                  | `string`  | equals, contains, startsWith, endsWith, in |
| `url`                      | `string`  | equals, contains, startsWith, endsWith, in |
| `title`                    | `string`  | equals, contains, startsWith, endsWith, in |
| `abstract`                 | `string`  | equals, contains, startsWith, endsWith, in |
| `venue`                    | `string`  | equals, contains, startsWith, endsWith, in |
| `year`                     | `number`  | equals, gt, gte, lt, lte, in               |
| `referenceCount`           | `number`  | equals, gt, gte, lt, lte, in               |
| `citationCount`            | `number`  | equals, gt, gte, lt, lte, in               |
| `influentialCitationCount` | `number`  | equals, gt, gte, lt, lte, in               |
| `isOpenAccess`             | `boolean` | equals                                     |
| `publicationDate`          | `string`  | equals, contains, startsWith, endsWith, in |

*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).*

***

## Reference

Path: `semanticscholar.db.reference.search`

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

### Searchable filters

| Field           | Type      | Operators                                  |
| --------------- | --------- | ------------------------------------------ |
| `entity_id`     | `string`  | equals, contains, startsWith, endsWith, in |
| `isInfluential` | `boolean` | equals                                     |

*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).*

***

## Snippet

Path: `semanticscholar.db.snippet.search`

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

### Searchable filters

| Field       | Type     | Operators                                  |
| ----------- | -------- | ------------------------------------------ |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `score`     | `number` | equals, gt, gte, lt, lte, in               |

*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).*

***
