{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/algolia/main/json-schema/algolia-personalization-strategy-params-schema.json",
  "title": "personalizationStrategyParams",
  "x-generated": "2026-09-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algolia-personalization-api-openapi.yml#/components/schemas/personalizationStrategyParams",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "eventsScoring",
    "facetsScoring",
    "personalizationImpact"
  ],
  "properties": {
    "eventsScoring": {
      "type": "array",
      "description": "Scores associated with each event.\n\nThe higher the scores, the higher the impact of those events on the personalization of search results.\n",
      "items": {
        "$ref": "#/$defs/eventsScoring"
      }
    },
    "facetsScoring": {
      "type": "array",
      "description": "Scores associated with each facet.\n\nThe higher the scores, the higher the impact of those events on the personalization of search results.\n",
      "items": {
        "$ref": "#/$defs/facetsScoring"
      }
    },
    "personalizationImpact": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Impact of personalization on the search results.\n\nIf set to 0, personalization has no impact on the search results.\n"
    }
  },
  "$defs": {
    "EventType": {
      "title": "eventType",
      "type": "string",
      "description": "Event type.",
      "enum": [
        "click",
        "conversion",
        "view"
      ]
    },
    "eventsScoring": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "score",
        "eventName",
        "eventType"
      ],
      "properties": {
        "score": {
          "$ref": "#/$defs/score"
        },
        "eventName": {
          "type": "string",
          "description": "Event name."
        },
        "eventType": {
          "$ref": "#/$defs/EventType"
        }
      }
    },
    "facetsScoring": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "score",
        "facetName"
      ],
      "properties": {
        "score": {
          "$ref": "#/$defs/score"
        },
        "facetName": {
          "type": "string",
          "description": "Facet attribute name."
        }
      }
    },
    "score": {
      "type": "integer",
      "description": "Event score."
    }
  }
}