Typesense · Schema
AnalyticsRuleCreateSchema
Full-Text SearchOpen-SourceSearch EnginesTypo ToleranceVector Search
Properties
| Name | Type | Description |
|---|---|---|
| name | string | Unique name for the analytics rule. |
| type | string | Type of analytics rule. popular_queries aggregates frequently occurring queries, nohits_queries tracks queries with zero results, and log logs raw events for downstream processing. |
| params | object | Parameters for the analytics rule. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AnalyticsRuleCreateSchema",
"title": "AnalyticsRuleCreateSchema",
"type": "object",
"required": [
"name",
"type",
"params"
],
"properties": {
"name": {
"type": "string",
"description": "Unique name for the analytics rule."
},
"type": {
"type": "string",
"description": "Type of analytics rule. popular_queries aggregates frequently occurring queries, nohits_queries tracks queries with zero results, and log logs raw events for downstream processing.",
"enum": [
"popular_queries",
"nohits_queries",
"counter",
"log"
]
},
"params": {
"type": "object",
"description": "Parameters for the analytics rule.",
"properties": {
"source": {
"type": "object",
"description": "Source configuration for the rule.",
"properties": {
"collections": {
"type": "array",
"description": "Collections to track queries for.",
"items": {
"type": "string"
}
},
"events": {
"type": "array",
"description": "Event types to track.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Event type (click, conversion, visit)."
},
"weight": {
"type": "number",
"description": "Weight assigned to this event type."
},
"name": {
"type": "string",
"description": "Name of the event."
}
}
}
}
}
},
"destination": {
"type": "object",
"description": "Destination configuration for aggregated data.",
"properties": {
"collection": {
"type": "string",
"description": "Collection to store aggregated results in."
},
"counter_field": {
"type": "string",
"description": "Field to use as a counter for counter-type rules."
}
}
},
"limit": {
"type": "integer",
"description": "Maximum number of suggestions to generate."
},
"expand_query": {
"type": "boolean",
"description": "Whether to expand the query for suggestions."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/typesense-analyticsrulecreateschema"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.