String field types

String field types contain text values or values derived from text. The following table lists all string field types that OpenSearch supports.

Field data typeDescription
keywordA string that is not analyzed. Useful for exact-value search.
textA string that is analyzed. Useful for full-text search.
match_only_textA space-optimized version of a text field.
token_countCounts the number of tokens in a string.
constant_keywordSimilar to keyword but uses a single value for all documents.
wildcardA variation of keyword with efficient substring and regular expression matching.