{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zincsearch/json-schema/zincsearch-meta-index-template-schema.json",
  "title": "meta.IndexTemplate",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zincsearch-index-api-openapi.yml#/components/schemas/meta.IndexTemplate",
  "type": "object",
  "properties": {
    "created_at": {
      "type": "string"
    },
    "index_patterns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "priority": {
      "description": "highest priority is chosen",
      "type": "integer"
    },
    "template": {
      "$ref": "#/$defs/meta.TemplateTemplate"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "$defs": {
    "meta.Analyzer": {
      "type": "object",
      "properties": {
        "char_filter": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filter": {
          "description": "compatibility with es, alias for TokenFilter",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lowercase": {
          "description": "for type=pattern",
          "type": "boolean"
        },
        "pattern": {
          "description": "for type=pattern",
          "type": "string"
        },
        "stopwords": {
          "description": "for type=pattern,standard,stop",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "token_filter": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tokenizer": {
          "type": "string"
        },
        "type": {
          "description": "options for compatible",
          "type": "string"
        }
      }
    },
    "meta.IndexAnalysis": {
      "type": "object",
      "properties": {
        "analyzer": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/meta.Analyzer"
          }
        },
        "char_filter": {
          "type": "object",
          "additionalProperties": true
        },
        "filter": {
          "description": "compatibility with es, alias for TokenFilter",
          "type": "object",
          "additionalProperties": true
        },
        "token_filter": {
          "type": "object",
          "additionalProperties": true
        },
        "tokenizer": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "meta.IndexSettings": {
      "type": "object",
      "properties": {
        "analysis": {
          "$ref": "#/$defs/meta.IndexAnalysis"
        },
        "number_of_replicas": {
          "type": "integer"
        },
        "number_of_shards": {
          "type": "integer"
        }
      }
    },
    "meta.Mappings": {
      "type": "object",
      "properties": {
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/meta.Property"
          }
        }
      }
    },
    "meta.Property": {
      "type": "object",
      "properties": {
        "aggregatable": {
          "type": "boolean"
        },
        "analyzer": {
          "type": "string"
        },
        "dims": {
          "description": "vector dimension, 0 accepts any",
          "type": "integer"
        },
        "fields": {
          "description": "Fields allow the same string value to be indexed in multiple ways for different purposes,\nsuch as one field for search and a multi-field for sorting and aggregations,\nor the same string value analyzed by different analyzers.\nIf the Fields property is defined within a sub-field, it will be ignored.\n\nCurrently, only \"text\" fields support the Fields parameter.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/meta.Property"
          }
        },
        "format": {
          "description": "date format yyyy-MM-dd HH:mm:ss || yyyy-MM-dd || epoch_millis",
          "type": "string"
        },
        "highlightable": {
          "type": "boolean"
        },
        "index": {
          "type": "boolean"
        },
        "search_analyzer": {
          "type": "string"
        },
        "sortable": {
          "type": "boolean"
        },
        "store": {
          "type": "boolean"
        },
        "time_zone": {
          "description": "date format time_zone",
          "type": "string"
        },
        "type": {
          "description": "text, keyword, date, numeric, boolean, geo_point, vector",
          "type": "string"
        }
      }
    },
    "meta.TemplateTemplate": {
      "type": "object",
      "properties": {
        "mappings": {
          "$ref": "#/$defs/meta.Mappings"
        },
        "settings": {
          "$ref": "#/$defs/meta.IndexSettings"
        }
      }
    }
  }
}