{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SparseIndexConfig",
  "title": "SparseIndexConfig",
  "description": "Configuration for sparse inverted index.",
  "type": "object",
  "required": [
    "index_type"
  ],
  "properties": {
    "full_scan_threshold": {
      "description": "We prefer a full scan search upto (excluding) this number of vectors.\n\nNote: this is number of vectors, not KiloBytes.",
      "type": "integer",
      "format": "uint",
      "minimum": 0,
      "nullable": true
    },
    "index_type": {
      "$ref": "#/components/schemas/SparseIndexType"
    },
    "datatype": {
      "description": "Datatype used to store weights in the index.",
      "anyOf": [
        {
          "$ref": "#/components/schemas/VectorStorageDatatype"
        },
        {
          "nullable": true
        }
      ]
    }
  }
}