@@ -20,59 +20,59 @@ import (
2020 "github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1/common"
2121)
2222
23- // SearchIndex is the CRD to configure part of the Atlas Search Index
23+ // SearchIndex is the CRD to configure part of the Atlas Search Index.
2424type SearchIndex struct {
25- // Human-readable label that identifies this index. Must be unique for a deployment
25+ // Human-readable label that identifies this index. Must be unique for a deployment.
2626 // +required
2727 Name string `json:"name"`
28- // Human-readable label that identifies the database that contains the collection with one or more Atlas Search indexes
28+ // Human-readable label that identifies the database that contains the collection with one or more Atlas Search indexes.
2929 // +required
3030 DBName string `json:"DBName"`
31- // Human-readable label that identifies the collection that contains one or more Atlas Search indexes
31+ // Human-readable label that identifies the collection that contains one or more Atlas Search indexes.
3232 // +required
3333 CollectionName string `json:"collectionName"`
34- // Type of the index
34+ // Type of the index.
3535 // +kubebuilder:validation:Enum:=search;vectorSearch
3636 // +required
3737 Type string `json:"type,omitempty"`
38+ // Atlas search index configuration.
3839 // +optional
39- // Atlas search index configuration
4040 Search * Search `json:"search,omitempty"`
41+ // Atlas vector search index configuration.
4142 // +optional
42- // Atlas vector search index configuration
4343 VectorSearch * VectorSearch `json:"vectorSearch,omitempty"`
4444}
4545
46- // Search represents "search" type of Atlas Search Index
46+ // Search represents "search" type of Atlas Search Index.
4747type Search struct {
48- // Rule sets that map words to their synonyms in this index
48+ // Rule sets that map words to their synonyms in this index.
4949 // +optional
5050 Synonyms * []Synonym `json:"synonyms,omitempty"`
51- // Index specifications for the collection's fields
51+ // Index specifications for the collection's fields.
5252 // +required
5353 Mappings * Mappings `json:"mappings,omitempty"`
54+ // A reference to the AtlasSearchIndexConfig custom resource.
5455 // +required
55- // A reference to the AtlasSearchIndexConfig custom resource
5656 SearchConfigurationRef common.ResourceRefNamespaced `json:"searchConfigurationRef"`
5757}
5858
59- // Synonym represents "Synonym" type of Atlas Search Index
59+ // Synonym represents "Synonym" type of Atlas Search Index.
6060type Synonym struct {
61- // Human-readable label that identifies the synonym definition. Each name must be unique within the same index definition
61+ // Human-readable label that identifies the synonym definition. Each name must be unique within the same index definition.
6262 // +required
6363 Name string `json:"name"`
64- // Specific pre-defined method chosen to apply to the synonyms to be searched
64+ // Specific pre-defined method chosen to apply to the synonyms to be searched.
6565 // +kubebuilder:validation: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
6666 // +required
6767 Analyzer string `json:"analyzer"`
68- // Data set that stores the mapping one or more words map to one or more synonyms of those words
68+ // Data set that stores the mapping one or more words map to one or more synonyms of those words.
6969 // +required
7070 Source Source `json:"source"`
7171}
7272
7373// Source represents "Source" type of Atlas Search Index
7474type Source struct {
75- // Human-readable label that identifies the MongoDB collection that stores words and their applicable synonyms
75+ // Human-readable label that identifies the MongoDB collection that stores words and their applicable synonyms.
7676 Collection string `json:"collection"`
7777}
7878
0 commit comments