{
  "description": "AtlasSearchIndexConfig is the Schema for the AtlasSearchIndexConfig API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "AtlasSearchIndexConfigSpec defines the target state of AtlasSearchIndexConfig.",
      "properties": {
        "analyzer": {
          "description": "Specific pre-defined method chosen to convert database field text into searchable words. This conversion reduces the text of fields into the smallest units of text.\nThese units are called a term or token. This process, known as tokenization, involves a variety of changes made to the text in fields:\n- extracting words\n- removing punctuation\n- removing accents\n- hanging to lowercase\n- removing common words\n- reducing words to their root form (stemming)\n- changing words to their base form (lemmatization) MongoDB Cloud uses the selected process to build the Atlas Search index",
          "enum": [
            "lucene.standard",
            "lucene.simple",
            "lucene.whitespace",
            "lucene.keyword",
            "lucene.arabic",
            "lucene.armenian",
            "lucene.basque",
            "lucene.bengali",
            "lucene.brazilian",
            "lucene.bulgarian",
            "lucene.catalan",
            "lucene.chinese",
            "lucene.cjk",
            "lucene.czech",
            "lucene.danish",
            "lucene.dutch",
            "lucene.english",
            "lucene.finnish",
            "lucene.french",
            "lucene.galician",
            "lucene.german",
            "lucene.greek",
            "lucene.hindi",
            "lucene.hungarian",
            "lucene.indonesian",
            "lucene.irish",
            "lucene.italian",
            "lucene.japanese",
            "lucene.korean",
            "lucene.kuromoji",
            "lucene.latvian",
            "lucene.lithuanian",
            "lucene.morfologik",
            "lucene.nori",
            "lucene.norwegian",
            "lucene.persian",
            "lucene.portuguese",
            "lucene.romanian",
            "lucene.russian",
            "lucene.smartcn",
            "lucene.sorani",
            "lucene.spanish",
            "lucene.swedish",
            "lucene.thai",
            "lucene.turkish",
            "lucene.ukrainian"
          ],
          "type": "string"
        },
        "analyzers": {
          "description": "List of user-defined methods to convert database field text into searchable words.",
          "items": {
            "properties": {
              "charFilters": {
                "description": "Filters that examine text one character at a time and perform filtering operations.",
                "x-kubernetes-preserve-unknown-fields": true
              },
              "name": {
                "description": "Human-readable name that identifies the custom analyzer. Names must be unique within an index, and must not start with any of the following strings:\n\"lucene.\", \"builtin.\", \"mongodb.\"",
                "type": "string"
              },
              "tokenFilters": {
                "description": "Filter that performs operations such as:\n- Stemming, which reduces related words, such as \"talking\", \"talked\", and \"talks\" to their root word \"talk\".\n- Redaction, the removal of sensitive information from public documents",
                "x-kubernetes-preserve-unknown-fields": true
              },
              "tokenizer": {
                "description": "Tokenizer that you want to use to create tokens. Tokens determine how Atlas Search splits up text into discrete chunks for indexing.",
                "properties": {
                  "group": {
                    "description": "Index of the character group within the matching expression to extract into tokens. Use `0` to extract all character groups.",
                    "type": "integer"
                  },
                  "maxGram": {
                    "description": "Characters to include in the longest token that Atlas Search creates.",
                    "type": "integer"
                  },
                  "maxTokenLength": {
                    "description": "Maximum number of characters in a single token. Tokens greater than this length are split at this length into multiple tokens.",
                    "type": "integer"
                  },
                  "minGram": {
                    "description": "Characters to include in the shortest token that Atlas Search creates.",
                    "type": "integer"
                  },
                  "pattern": {
                    "description": "Regular expression to match against.",
                    "type": "string"
                  },
                  "type": {
                    "description": "Human-readable label that identifies this tokenizer type.",
                    "enum": [
                      "whitespace",
                      "uaxUrlEmail",
                      "standard",
                      "regexSplit",
                      "regexCaptureGroup",
                      "nGram",
                      "keyword",
                      "edgeGram"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object",
                "additionalProperties": false
              }
            },
            "required": [
              "name",
              "tokenizer"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "searchAnalyzer": {
          "description": "Method applied to identify words when searching this index.",
          "enum": [
            "lucene.standard",
            "lucene.simple",
            "lucene.whitespace",
            "lucene.keyword",
            "lucene.arabic",
            "lucene.armenian",
            "lucene.basque",
            "lucene.bengali",
            "lucene.brazilian",
            "lucene.bulgarian",
            "lucene.catalan",
            "lucene.chinese",
            "lucene.cjk",
            "lucene.czech",
            "lucene.danish",
            "lucene.dutch",
            "lucene.english",
            "lucene.finnish",
            "lucene.french",
            "lucene.galician",
            "lucene.german",
            "lucene.greek",
            "lucene.hindi",
            "lucene.hungarian",
            "lucene.indonesian",
            "lucene.irish",
            "lucene.italian",
            "lucene.japanese",
            "lucene.korean",
            "lucene.kuromoji",
            "lucene.latvian",
            "lucene.lithuanian",
            "lucene.morfologik",
            "lucene.nori",
            "lucene.norwegian",
            "lucene.persian",
            "lucene.portuguese",
            "lucene.romanian",
            "lucene.russian",
            "lucene.smartcn",
            "lucene.sorani",
            "lucene.spanish",
            "lucene.swedish",
            "lucene.thai",
            "lucene.turkish",
            "lucene.ukrainian"
          ],
          "type": "string"
        },
        "storedSource": {
          "description": "Flag that indicates whether to store all fields (true) on Atlas Search. By default, Atlas doesn't store (false) the fields on Atlas Search.\nAlternatively, you can specify an object that only contains the list of fields to store (include) or not store (exclude) on Atlas Search.\nTo learn more, see documentation: https://www.mongodb.com/docs/atlas/atlas-search/stored-source-definition/",
          "x-kubernetes-preserve-unknown-fields": true
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "AtlasSearchIndexConfigStatus defines the observed state of AtlasSearchIndexConfig.",
      "properties": {
        "conditions": {
          "description": "Conditions is the list of statuses showing the current state of the Atlas Custom Resource",
          "items": {
            "description": "Condition describes the state of an Atlas Custom Resource at a certain point.",
            "properties": {
              "lastTransitionTime": {
                "description": "Last time the condition transitioned from one status to another.\nRepresented in ISO 8601 format.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "A message providing details about the transition.",
                "type": "string"
              },
              "reason": {
                "description": "The reason for the condition's last transition.",
                "type": "string"
              },
              "status": {
                "description": "Status of the condition; one of True, False, Unknown.",
                "type": "string"
              },
              "type": {
                "description": "Type of Atlas Custom Resource condition.",
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "observedGeneration": {
          "description": "ObservedGeneration indicates the generation of the resource specification of which the Atlas Operator is aware.\nThe Atlas Operator updates this field to the value of 'metadata.generation' as soon as it starts reconciliation of the resource.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "conditions"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
