Skip to main content

Integer

integer holds whole numbers.

ValueExample
whole number from -2^63 to 2^63-142

Settings

This type has no settings of its own, it supports the settings of every property.

Storage

DatabaseStored asNotes
Neo4jnative INTEGER (64 bit)(default)
MongoDBint or longwith "storage": "document" or the placement role scalar moved to MongoDB
Elasticsearchlongsearch copy, see below

The search copy is written unless the property or the type sets "search": false. Where a property is stored is explained in placement.

Indices

exact, see indices. Nested properties can be indexed as well, see nested properties.

Limits

Whole numbers from -9223372036854775808 to 9223372036854775807 (64 bit). JSON numbers with a fraction, e.g. 1.5, are rejected, 1.0 is accepted as 1.

Example

Schema:

{
"type": "integer",
"index": "exact"
}

Input and output:

{
"data": {
"value": 42
}
}