Create a collection (console)
Use the procedures in this section to create a collection by using the Amazon Web Services Management Console. These steps cover how to create a search or time series collection. To create a vector search collection, see Working with vector search collections.
Configure collection settings
Use the following procedure configure information about your collection.
To configure collection settings using the console
-
Navigate to the Amazon OpenSearch Service console at https://console.aws.amazon.com/aos/home/
. -
Expand Serverless in the left navigation pane and choose Collections.
-
Choose Create collection.
-
Provide a name and description for the collection. The name must meet the following criteria:
-
Is unique to your account and Amazon Web Services Region
-
Contains only lowercase letters a-z, the numbers 0–9, and the hyphen (-)
-
Contains between 3 and 32 characters
-
-
Choose a collection type:
-
Time series – Log analytics segment that focuses on analyzing large volumes of semi-structured, machine-generated data. At least 24 hours of data is stored on hot indexes, and the rest remains in warm storage.
-
Search – Full-text search that powers applications in your internal networks and internet-facing applications. All search data is stored in hot storage to ensure fast query response times.
Note
Choose this option if you are enabling automatic semantic search, as described in Configure collection settings.
-
Vector search – Semantic search on vector embeddings that simplifies vector data management. Powers machine learning (ML) augmented search experiences and generative AI applications such as chatbots, personal assistants, and fraud detection.
For more information, see Choosing a collection type.
-
-
For Deployment type, choose the redundancy setting for your collection. By default, each collection has redundancy, which means that the indexing and search OpenSearch Compute Units (OCUs) each have their own standby replicas in a different Availability Zone. For development and testing purposes, you can choose to disable redundancy, which reduces the number of OCUs in your collection to two. For more information, see How it works.
-
For Security, choose Standard create.
-
For Encryption, choose an Amazon KMS key to encrypt your data with. OpenSearch Serverless notifies you if the collection name that you entered matches a pattern defined in an encryption policy. You can choose to keep this match or override it with unique encryption settings. For more information, see Encryption in Amazon OpenSearch Serverless.
-
For Network access settings, configure network access for the collection.
-
For Access type, select public or private.
If you choose private, specify which VPC endpoints and Amazon Web Services services can access the collection.
-
VPC endpoints for access – Specify one or more VPC endpoints to allow access through. To create a VPC endpoint, see Access Amazon OpenSearch Serverless using an interface endpoint (Amazon PrivateLink).
-
Amazon Web Services service private access – Select one or more supported services to allow access to.
-
-
For Resource type, select whether users can access the collection through its OpenSearch endpoint (to make API calls through cURL, Postman, and so on), through the OpenSearch Dashboards endpoint (to work with visualizations and make API calls through the console), or both.
Note
Amazon Web Services service private access applies only to the OpenSearch endpoint, not to the OpenSearch Dashboards endpoint.
OpenSearch Serverless notifies you if the collection name that you entered matches a pattern defined in a network policy. You can choose to keep this match or override it with custom network settings. For more information, see Network access for Amazon OpenSearch Serverless.
-
-
(Optional) Add one or more tags to the collection. For more information, see Tagging Amazon OpenSearch Serverless collections.
-
Choose Next.
Configure additional search fields
The options you see on page two of the create collection workflow depend on the type of collection you are creating. This section describes how to configure additional search fields for each collection type. This section also describes how to configure automatic semantic enrichment. Skip any section that doesn't apply to your collection type.
Topics
Configure automatic semantic enrichment
When you create or edit a collection, you can configure automatic semantic enrichment, which simplifies semantic search implementation and capabilities in Amazon OpenSearch Service. Semantic search returns query results that incorporate not just keyword matching, but the intent and contextual meaning of the user's search. For more information, see About automatic semantic enrichment.
To configure automatic semantic enrichment
-
In the Index details section, for Index name, specify a name.
-
In the Automatic semantic enrichment fields section, choose Add semantic search field.
-
In the Input field name for semantic enrichment field, enter the name of a field that you want to enrich.
-
Data type is Text. You can't change this.
-
For Language, choose either English or Multilingual.
-
Choose Add field.
-
After you finish configuring optional fields for your collection, choose Next. Review your changes and choose Submit to create the collection.
Configure time series search fields
The options in the Time series search fields section pertain to time series data and data streams. For more information about these subjects, see Managing time-series data in Amazon OpenSearch Service with data streams.
To configure time series search fields
-
In the Time series search fields section, choose Add time series field.
-
For Field name, enter a name.
-
For Data type, choose a type from the list.
-
Choose Add field
-
After you finish configuring optional fields for your collection, choose Next. Review your changes and choose Submit to create the collection.
Configure lexical search fields
Lexical search seeks an exact match between a search query and indexed terms or keywords.
To configure lexical search fields
-
In the Lexical search fields section, choose Add search field.
-
For Field name, enter a name.
-
For Data type, choose a type from the list.
-
Choose Add field
-
After you finish configuring optional fields for your collection, choose Next. Review your changes and choose Submit to create the collection.
Configure vector search fields
To configure vector search fields
-
In the Vector fields section, choose Add vector field.
-
For Field name, enter a name.
-
For Engine, choose a type from the list.
-
Enter the number of dimensions.
-
For Distance Metric, choose a type from the list.
-
After you finish configuring optional fields for your collection, choose Next.
-
Review your changes and choose Submit to create the collection.