Vector analyzers convert your data into high-dimensional vectors that OpenSearch uses for similarity search. OpenSearch provides two categories of analyzers depending on how your data enters the index:
Industry-specific analyzers — for E-commerce and Education templates. Input fields must be of the TEXT type.
General-purpose analyzers — for exclusive applications. You provide pre-computed vectors. Input fields must be of the DOUBLE_ARRAY type (a double-precision floating-point array).
Choose an analyzer
| Analyzer | Dimensions | Field type | Available for |
|---|---|---|---|
| E-commerce vector analyzer (general) | 128 | TEXT | E-commerce industry template |
| Education vector analyzer (general) | 128 | TEXT | Education industry template |
| Education vector analyzer (K-12) | 256 | TEXT | Education industry template |
| 64-dimensional vector analyzer (general) | 64 | DOUBLE_ARRAY | Exclusive applications |
| 128-dimensional vector analyzer (general) | 128 | DOUBLE_ARRAY | Exclusive applications |
| 256-dimensional vector analyzer (general) | 256 | DOUBLE_ARRAY | Exclusive applications |
| 512-dimensional vector analyzer (general) | 512 | DOUBLE_ARRAY | Exclusive applications |
Decision guide:
Using an E-commerce or Education industry template? Use the corresponding industry-specific analyzer. Input fields must be of the TEXT type.
Using an exclusive application (no industry template)? Use one of the general-purpose analyzers. Convert your source data into vectors and store them in DOUBLE_ARRAY fields before indexing. Choose the dimension that matches your requirements.
E-commerce vector analyzer (general)
A 128-dimensional analyzer optimized for E-commerce search. It covers most E-commerce search scenarios.
Constraints:
Applies only to fields of the TEXT type.
Available only for the E-commerce industry template.
Education vector analyzer (general)
A 128-dimensional analyzer optimized for general education search scenarios.
Constraints:
Applies only to fields of the TEXT type.
Available only for the Education industry template.
Education vector analyzer (K-12)
A 256-dimensional analyzer optimized for K-12 education content (preschool through high school). It is designed for K-12 question search.
Constraints:
Applies only to fields of the TEXT type.
Available only for the Education industry template.
General-purpose vector analyzers (64, 128, 256, and 512 dimensions)
Four analyzers for exclusive applications, available in four dimensionalities. Use these when your application does not use an industry template.
Before indexing, convert your source data into vectors and store them in fields of the DOUBLE_ARRAY type.
Constraints:
Apply only to fields of the DOUBLE_ARRAY type.
Available only for exclusive applications.
Require manual data conversion: transform your data into vectors and store them in DOUBLE_ARRAY fields before indexing.