Creating a Collection in Typesense Cloud with Firebase Extension
TLDR Lukas asked about creating collections in Typesense with objects, which Kishore Nallan informed is not supported. Kishore Nallan suggested flattening the fields and reassured that an array of strings can be used for tagging purposes.
Jul 28, 2021 (28 months ago)
Lukas
10:59 AMI'm trying to create a collection in typesense cloud with firebase extension. Just wanted to know are objects not supported?
calories = {
calories: 200,
protein: 30,
carbs: 10
}
Request failed with HTTP code 400 | Server said: Type of field `calories` is invalid.
Kishore Nallan
10:59 AMKishore Nallan
11:00 AMLukas
11:01 AMKishore Nallan
11:06 AMLukas
11:31 AMWould I have to do it like this:
isVegan: true
instead of obviously storing in array.Kishore Nallan
11:39 AMperson: {name: "foo", age: 20}
-- instead you need to have 2 fields "person.name" and "person.age" separately.Typesense
Indexed 2776 threads (79% resolved)
Similar Threads
Nested Objects Issue in Firebase & Typesense Integration
Shaun encountered issues with nested objects being flattened in Typesense. Jason found the root issue and provided a solution involving updating the Firebase extension to 1.0.3.
Understanding and Implementing Typesense Dart Library with Flutter
Alexandro sought help with the Typesense Dart library. Jason explained that the library is in progress, discussed utilizing other HTTP libraries, and provided detailed instructions on utilizing Typesense with Flutter. Alexandro provided feedback on the Typesense UI and expressed interest in creating a tutorial video.
Resolving Typesense Cloud and Firebase Timestamp Error
Eoin faced an issue with Firebase timestamp when setting up Typesense Cloud. Jason suggested converting timestamps to Unix and sync them as int64 fields in Typesense.