Skip to main content
Version: 2.0

Data Types

This section provides a list of the various data types supported by Vectara, helping you make informed decisions when working with different data types.

Data TypeDescriptionMetadata Literal Syntax
IntegerThe value is a signed integer up to eight bytes in length.Any number of digits without a period.
Real (Float)The value is a floating point number corresponding to a Java double, and is of IEEE 754 float64 format.Any number of digits with a period.
TextThe value is UTF-8 text.A string is enclosed in single quotes ('). You can escape a ' inside text by having two quotes ('').
BooleanThe value is Booleantrue or false
NullIf metadata is not present, its absence is indicated by NULL.null

Reference field names with special characters​

The syntax above describes how to write metadata values. Field names have their own rules. A field name that contains characters other than letters, digits, and underscores, such as dots, dashes, or spaces, must be enclosed in double quotes ("). For example, the field source.origin-name must be written as doc."source.origin-name" = 'abc'.

For the full rules, including how to escape special characters inside a quoted name, see Reference field names with special characters.