/
What are the acceptable JSON formats?
This Confluence instance is now read-only, please head over to the Algolia Confluence instance for the same more up-to-date information
What are the acceptable JSON formats?
What are the acceptable JSON formats?
Answer
When creating a new search collection for an app or store, you can import your data in a JSON format. Examples of acceptable JSON are mentioned below.
Nested JSON is not supported.
One record:
{
"id": "123",
"attrib":"value"
}
One record with list:
{
"id": "123",
"attrib":"value",
"list":["item1","item2","item3"]
}
Multiple records:
[
{
"id": "1",
"attrib":"value1"
},
{
"id": "2",
"attrib":"value2"
}
]
Multiple records with list:
Note that if a schema field is a list, a record can have a single value either with or without square brackets. Both formats are acceptable and will be indexed.
, multiple selections available,
Related content
How to pass a list of items to filter records?
How to pass a list of items to filter records?
More like this
How to force single values to be stored for repeated fields
How to force single values to be stored for repeated fields
More like this
How to resolve 'collection indexes not ready' error?
How to resolve 'collection indexes not ready' error?
More like this
How to index date metadata for search
How to index date metadata for search
More like this
How can I filter values on a repeated field?
How can I filter values on a repeated field?
More like this