Discussing Support for Nested Objects in Typesense
TLDR Martin expressed the need for support for nested objects in Typesense. Kishore Nallan mentioned the possibility of flattening objects before indexing and restoring them later. An issue has been created on GitHub to track this.
1
Sep 20, 2021 (28 months ago)
Martin
06:49 AMKishore Nallan
06:49 AMKishore Nallan
06:50 AMMartin
07:33 AMMartin
07:36 AMKishore Nallan
07:36 AMKishore Nallan
07:38 AMMartin
07:43 AMKishore Nallan
07:56 AMAndrew
08:41 AMMartin
08:49 AM1
Kishore Nallan
09:45 AMcreators
which is a nested object directly or query as creators.name
etc. which refer to primitive types.Martin
10:53 AMcreators.name
. This particular query is very common. So queries would be for primitive types. An edge case would be queries for creators.givenName
& creators.familyName
which Elasticsearch addresses with either nested fields (as you want givenName and familyName to belong to the same creator) or a combined field combining both values. I usually use the latter (this is for an index with more than 20 million records).Kishore Nallan
11:01 AMYes, this is one tricky thing to handle when you flatten fields: you don't want to end up matching the first name of one person with last name of another.
Sep 29, 2021 (28 months ago)
Andrew
03:04 PMKishore Nallan
03:05 PMSep 30, 2021 (28 months ago)
Andrew
04:39 PMKishore Nallan
04:42 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Handling Nested Objects in Typesense
Darren queried about storing arrays of objects in Typesense. Kishore Nallan advised that Typesense doesn't support nesting but shared alternative reindexing methods. They added improved nesting support is planned for the future.
Nested Objects and Arrays in Typesense
Robert seeks advice on managing nested objects in Typesense. Kishore Nallan informs of upcoming support for nested objects and provides a current workaround. Robert indicates interest in tracking this feature. Kishore Nallan provides a link to follow the issue.
Configuring Typesense Extension for Nested Fields in Firebase Collection
David had issues indexing nested fields using the Typesense extension. Jason offered advice on specifying schemas and prioritizing specific fields, but there remained unresolved challenges with the schema.
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.
Nested Field Search with Typesense
Justin asks if searching within object arrays is supported, Jason says it isn't yet. Users discuss Elasticsearch's nested object type as a potential solution, and Justin confirms that field names with spaces work in the current Typesense version.