# pub.chive.graph.searchNodes

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.graph.searchNodes)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.graph.searchNodes/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.graph.searchNodes/examples)

## Definitions

### `pub.chive.graph.searchNodes`

**Type**: `query`

Full-text search for knowledge graph nodes with optional filtering

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kind` | `string` | No | Filter by node kind |
| `limit` | `integer` | No | Maximum results to return |
| `query` | `string` | Yes | Search query |
| `cursor` | `string` | No | Pagination cursor |
| `status` | `string` | No | Filter by lifecycle status |
| `subkind` | `string` | No | Filter by subkind slug |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `nodes` | `array` | Yes | Search results |
| `total` | `integer` | Yes | Total count of matching nodes |
| `cursor` | `string` | No | Pagination cursor for next page |
| `hasMore` | `boolean` | Yes | Whether more results exist |

## Raw Schema

```json
{
  "id": "pub.chive.graph.searchNodes",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "nodes",
            "hasMore",
            "total"
          ],
          "properties": {
            "nodes": {
              "type": "array",
              "items": {
                "ref": "pub.chive.graph.listNodes#graphNode",
                "type": "ref"
              },
              "description": "Search results"
            },
            "total": {
              "type": "integer",
              "description": "Total count of matching nodes"
            },
            "cursor": {
              "type": "string",
              "description": "Pagination cursor for next page"
            },
            "hasMore": {
              "type": "boolean",
              "description": "Whether more results exist"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "query"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "description": "Filter by node kind",
            "knownValues": [
              "type",
              "object"
            ]
          },
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum results to return"
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search query"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          },
          "status": {
            "type": "string",
            "description": "Filter by lifecycle status",
            "knownValues": [
              "proposed",
              "provisional",
              "established",
              "deprecated"
            ]
          },
          "subkind": {
            "type": "string",
            "description": "Filter by subkind slug"
          }
        }
      },
      "description": "Full-text search for knowledge graph nodes with optional filtering"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
