After you install the MongoDBSearch custom resource, you can create MongoDB Search and Vector Search indexes as the mdb-user and run MongoDB Search and Vector Search queries using the indexes. This page describes how to load sample data, create MongoDB Search and Vector Search indexes for the sample data, and run MongoDB Search and Vector Search queries against the sample data.
Prerequisites
To use MongoDB Search and Vector Search, you must have the following:
Successful deployment of
MongoDBand MongoDBSearch.To learn more, see:
User with permissions to create MongoDB Search and Vector Search indexes and run MongoDB Search and Vector Search queries.
To learn more, see Configure a User for MongoDB Search and Vector Search.
kubectl, configured to communicate with your cluster.Bash v5.1 or later to run the commands in this tutorial.
Procedure
Troubleshooting
Search Index Creation Fails
MongoDBSearch Stuck in Pending
Search Index Management Service Connection Error
This issue applies to deployments that use a managed Envoy load balancer (spec.loadBalancer.managed).
Resources
To learn more about creating indexes and running search queries, see: