Types #
This page lists all the data types supported by Pizza
text #
Field type to index full-text values
Parameters for text
fields
#
- analyzer
- search_analyzer
- realtime
- index
- fields
Support indexing multiple values #
Yes
keyword #
which is used for structured content such as IDs, email addresses, hostnames, status codes, zip codes, or tags.
Parameters for keyword
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
unsigned_big_int #
unsigned 64-bit integer
Parameters for unsigned_big_int
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
unsigned_integer #
unsigned 32-bit integer
Parameters for unsigned_integer
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
unsigned_small_int #
unsigned 16-bit integer
Parameters for small_int
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
byte #
unsigned 8-bit integer
Parameters for byte
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
big_int #
signed 64-bit integer
Parameters for big_int
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
integer #
signed 32-bit integer
Parameters for integer
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
small_int #
signed 16-bit integer
Parameters for small_int
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
tiny_int #
signed 8-bit integer
Parameters for tiny_int
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
float #
single precision floating-point number
Parameters for float
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
double #
double precision floating-point number
Parameters for double
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
boolean #
logical Boolean (true/false)
Parameters for boolean
fields
#
- realtime
- index
- fields
Support indexing multiple values #
Yes
object #
JSON documents are hierarchical in nature: the document may contain inner objects
which, in turn, may contain inner objects themselves. the object
types introduces
inner objects.
{
"album": {
"artists": ["Bill Danoff", "Taffy Nivert", "John Denver"]
}
}
In the above JSON document, field “album” is of type object.
Parameters for object
fields
#
- realtime: an
object
field’srealtime
parameter would overwrite its sub-fields'realtime
parameter, even when they are explicitly set. - index: an
object
field’sindex
parameter would overwrite its sub-fields'index
parameter, even when they are explicitly set. - properties
Support indexing multiple values #
Yes
“array” #
Pizza has no dedicated array data type. Any field can contain zero or more values by default, if:
- They have the same type.
- The field type supports indexing multiple values.