{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AcornSearchParams",
  "title": "AcornSearchParams",
  "description": "ACORN-related search parameters",
  "type": "object",
  "properties": {
    "enable": {
      "description": "If true, then ACORN may be used for the HNSW search based on filters selectivity. Improves search recall for searches with multiple low-selectivity payload filters, at cost of performance.",
      "default": false,
      "type": "boolean"
    },
    "max_selectivity": {
      "description": "Maximum selectivity of filters to enable ACORN.\n\nIf estimated filters selectivity is higher than this value, ACORN will not be used. Selectivity is estimated as: `estimated number of points satisfying the filters / total number of points`.\n\n0.0 for never, 1.0 for always. Default is 0.4.",
      "type": "number",
      "format": "double",
      "maximum": 1,
      "minimum": 0,
      "nullable": true
    }
  }
}