Skip to content

Commit

Permalink
Added Atlas Search Index changes (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-karpukhin authored May 6, 2024
1 parent dbf8580 commit ebc9c68
Show file tree
Hide file tree
Showing 2 changed files with 490 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,197 @@ spec:
type: array
rootCertType:
type: string
searchIndexes:
description: A list of atlas search indexes configuration for
the current deployment
items:
description: SearchIndex is the CRD to configure part of the
Atlas Search Index
properties:
DBName:
description: Human-readable label that identifies the database
that contains the collection with one or more Atlas Search
indexes
type: string
collectionName:
description: Human-readable label that identifies the collection
that contains one or more Atlas Search indexes
type: string
name:
description: Human-readable label that identifies this index.
Must be unique for a deployment
type: string
search:
description: Atlas search index configuration
properties:
mappings:
description: Index specifications for the collection's
fields
properties:
dynamic:
description: Flag that indicates whether the index
uses dynamic or static mappings. Required if mapping.fields
is omitted.
type: boolean
fields:
description: One or more field specifications for
the Atlas Search index. Required if mapping.dynamic
is omitted or set to false.
x-kubernetes-preserve-unknown-fields: true
type: object
searchConfigurationRef:
description: A reference to the AtlasSearchIndexConfig
custom resource
properties:
name:
description: Name is the name of the Kubernetes
Resource
type: string
namespace:
description: Namespace is the namespace of the Kubernetes
Resource
type: string
required:
- name
type: object
synonyms:
description: Rule sets that map words to their synonyms
in this index
items:
description: Synonym represents "Synonym" type of
Atlas Search Index
properties:
analyzer:
description: Specific pre-defined method chosen
to apply to the synonyms to be searched
enum:
- lucene.standard
- 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
name:
description: Human-readable label that identifies
the synonym definition. Each name must be unique
within the same index definition
type: string
source:
description: Data set that stores the mapping
one or more words map to one or more synonyms
of those words
properties:
collection:
description: Human-readable label that identifies
the MongoDB collection that stores words
and their applicable synonyms
type: string
required:
- collection
type: object
required:
- analyzer
- name
- source
type: object
type: array
required:
- searchConfigurationRef
type: object
type:
description: Type of the index
enum:
- search
- vectorSearch
type: string
vectorSearch:
description: Atlas vector search index configuration
properties:
fields:
description: Array of JSON objects. See examples https://dochub.mongodb.org/core/avs-vector-type
x-kubernetes-preserve-unknown-fields: true
type: object
required:
- DBName
- collectionName
- name
type: object
type: array
searchNodes:
description: Settings for Search Nodes for the cluster. Currently,
at most one search node configuration may be defined.
items:
properties:
instanceSize:
description: Hardware specification for the Search Node
instance sizes.
enum:
- S20_HIGHCPU_NVME
- S30_HIGHCPU_NVME
- S40_HIGHCPU_NVME
- S50_HIGHCPU_NVME
- S60_HIGHCPU_NVME
- S70_HIGHCPU_NVME
- S80_HIGHCPU_NVME
- S30_LOWCPU_NVME
- S40_LOWCPU_NVME
- S50_LOWCPU_NVME
- S60_LOWCPU_NVME
- S80_LOWCPU_NVME
- S90_LOWCPU_NVME
- S100_LOWCPU_NVME
- S110_LOWCPU_NVME
type: string
nodeCount:
description: Number of Search Nodes in the cluster.
maximum: 32
minimum: 2
type: integer
type: object
maxItems: 1
type: array
tags:
description: Key-value pairs for resource tagging.
items:
Expand Down Expand Up @@ -796,6 +987,26 @@ spec:
- id
type: object
type: array
searchIndexes:
description: SearchIndexes contains a list of search indexes statuses
configured for a project
items:
properties:
ID:
type: string
message:
type: string
name:
type: string
status:
type: string
required:
- ID
- message
- name
- status
type: object
type: array
serverlessPrivateEndpoints:
items:
properties:
Expand Down
Loading

0 comments on commit ebc9c68

Please sign in to comment.