# blue.moji.collection.searchItems

> Published by [moji.blue](https://lexicon.garden/identity/did:plc:kmzpsik7s5y5fwu7nnkngfx4)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.collection.searchItems)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.collection.searchItems/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.collection.searchItems/examples)

## Definitions

### `blue.moji.collection.searchItems`

**Type**: `query`

Search Bluemoji by alias or alt text. Searches network-wide by default (subject to takedown filtering) — pass 'repo' to restrict to a single repo's own collection, e.g. for a composer picker limited to the signed-in user's emoji. Intended as shared infrastructure so clients don't need to maintain their own emoji search index for :-autocomplete pickers.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `q` | `string` | Yes | Search query, matched against the alias and alt text. |
| `repo` | `string` (at-identifier) | No | Restrict results to a single repo's collection. Network-wide search when omitted. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `items` | `array` | Yes |  |
| `cursor` | `string` | No |  |

## Raw Schema

```json
{
  "id": "blue.moji.collection.searchItems",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "items"
          ],
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "ref": "blue.moji.collection.item#itemView",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "description": "Search query, matched against the alias and alt text."
          },
          "repo": {
            "type": "string",
            "format": "at-identifier",
            "description": "Restrict results to a single repo's collection. Network-wide search when omitted."
          },
          "limit": {
            "type": "integer",
            "default": 25,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "Search Bluemoji by alias or alt text. Searches network-wide by default (subject to takedown filtering) — pass 'repo' to restrict to a single repo's own collection, e.g. for a composer picker limited to the signed-in user's emoji. Intended as shared infrastructure so clients don't need to maintain their own emoji search index for :-autocomplete pickers."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
