{
  "knn_search": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/knn-search-api.html",
      "description": "Run a knn search"
    },
    "stability": "experimental",
    "deprecated": {
      "version": "8.4.0",
      "description": "The kNN search API has been replaced by the `knn` option in the search API."
    },
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/{index}/_knn_search",
          "methods": [
            "GET",
            "POST"
          ],
          "parts": {
            "index": {
              "type": "list",
              "description": "A comma-separated list of index names to search; use `_all` to perform the operation on all indices"
            }
          }
        }
      ]
    },
    "params": {
      "routing": {
        "type": "list",
        "description": "A comma-separated list of specific routing values"
      }
    },
    "body": {
      "description": "The search definition",
      "required": true
    }
  }
}
