# at.isnot.suggestSubjects

> Published by [isnot.at](https://lexicon.garden/identity/did:web:isnot.at)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:isnot.at/at.isnot.suggestSubjects)
- [Documentation](https://lexicon.garden/lexicon/did:web:isnot.at/at.isnot.suggestSubjects/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:isnot.at/at.isnot.suggestSubjects/examples)

## Definitions

### `at.isnot.suggestSubjects`

**Type**: `query`

Suggest review subjects whose title matches a search string, most-reviewed first.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `q` | `string` | Yes | Text to match against subject titles, case-insensitively. An empty string returns no suggestions. |
| `limit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subjects` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "at.isnot.suggestSubjects",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "subjects"
          ],
          "properties": {
            "subjects": {
              "type": "array",
              "items": {
                "ref": "at.isnot.review#subject",
                "type": "ref"
              },
              "maxLength": 25
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "type": "string",
            "maxLength": 512,
            "description": "Text to match against subject titles, case-insensitively. An empty string returns no suggestions."
          },
          "limit": {
            "type": "integer",
            "default": 8,
            "maximum": 25,
            "minimum": 1
          }
        }
      },
      "description": "Suggest review subjects whose title matches a search string, most-reviewed first."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
