The AtlasSearchIndexConfig custom resource configures your
Atlas Search index for a collection.
When you create the AtlasSearchIndexConfig
custom resource, Atlas Kubernetes Operator tries to create or update an index for a collection.
Examples
The following example shows an AtlasSearchIndexConfig custom resource
specification configured for the lucene.standard analyzer method.
apiVersion: atlas.mongodb.com/v1 kind: AtlasSearchIndexConfig metadata: name: atlassearchindexconfig-sample namespace: mongodb-atlas-system spec: analyzer: lucene.standard searchAnalyzer: lucene.standard
Parameters
AtlasSearchIndexConfig
AtlasSearchIndexConfig is the Schema for the AtlasSearchIndexConfig API
Name | Type | Description | Required |
|---|---|---|---|
| string | atlas.mongodb.com/v1 | true |
| string |
| true |
| object | Refer to the Kubernetes | true |
| object |
| false |
| object |
| false |
AtlasSearchIndexConfig.spec
AtlasSearchIndexConfigSpec defines the target state of AtlasSearchIndexConfig.
Name | Type | Description | Required |
|---|---|---|---|
| enum | 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.
These units are called a term or token. This process, known as tokenization, involves a variety of changes made to the text in fields:
- extracting words
- removing punctuation
- removing accents
- hanging to lowercase
- removing common words
- reducing words to their root form (stemming)
- changing words to their base form (lemmatization) | false |
| []object | List of user-defined methods to convert database field text into searchable words. | false |
| enum | 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 | false |
|
| Flag that indicates whether to store all fields (true) on Atlas Search. By default, Atlas doesn't store (false) the fields on Atlas Search. Alternatively, you can specify an object that only contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see documentation: https://www.mongodb.com/docs/atlas/atlas-search/stored-source-definition/ | false |
AtlasSearchIndexConfig.spec.analyzers
Name | Type | Description | Required |
|---|---|---|---|
| string | Human-readable | true |
| object | Tokenizer that you want to use to create tokens. Tokens determine how Atlas Search splits up text into discrete chunks for indexing. | true |
|
| Filters that examine text one character at a time and perform filtering operations. | false |
|
| Filter that performs operations such as: - Stemming, which reduces related words, such as "talking", "talked", and "talks" to their root word "talk". - Redaction, the removal of sensitive information from public documents | false |
AtlasSearchIndexConfig.spec.analyzers.tokenizer
Tokenizer that you want to use to create tokens. Tokens determine how Atlas Search splits up text into discrete chunks for indexing.
Name | Type | Description | Required |
|---|---|---|---|
| enum | Human-readable label that identifies this tokenizer type.
Enum: whitespace, | true |
| integer | Index of the character | false |
| integer | Characters to include in the longest token that Atlas Search creates. | false |
| integer | Maximum number of characters in a single token. Tokens greater than this length are split at this length into multiple tokens. | false |
| integer | Characters to include in the shortest token that Atlas Search creates. | false |
| string | Regular expression to match against. | false |
AtlasSearchIndexConfig.status
AtlasSearchIndexConfigStatus defines the observed state of AtlasSearchIndexConfig.
Name | Type | Description | Required |
|---|---|---|---|
| []object | Conditions is the list of statuses showing the current state of the Atlas Custom Resource | true |
| integer |
| false |
AtlasSearchIndexConfig.status.conditions
Condition describes the state of an Atlas Custom Resource at a certain point.
Name | Type | Description | Required |
|---|---|---|---|
| string | Status of the condition; one of True, False, Unknown. | true |
| string | Type of Atlas Custom Resource condition. | true |
| string | Last time the condition transitioned from one status to another.
Represented in | false |
| string | A | false |
| string | The | false |