~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
31 lines · 887 B Raw History
{
  "lexicon": 1,
  "id": "dev.hatk.searchRecords",
  "defs": {
    "main": {
      "type": "query",
      "description": "Full-text search across a collection.",
      "parameters": {
        "type": "params",
        "required": ["collection", "q"],
        "properties": {
          "collection": { "type": "string" },
          "q": { "type": "string", "description": "Search query" },
          "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 },
          "cursor": { "type": "string" },
          "fuzzy": { "type": "boolean", "default": true }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "items": { "type": "array", "items": { "type": "unknown" } },
            "cursor": { "type": "string" }
          }
        }
      }
    }
  }
}