#community-help

Enabling Nested Fields in Airbyte's Typesense Destination

TLDR Jamshid wanted to enable nested fields in Typesense. Jason suggested a code modification, which Jamshid corrected and successfully implemented.

Powered by Struct AI
+11
heart1
3
3mo
Solved
Join the chat
Jun 20, 2023 (3 months ago)
Jamshid
Photo of md5-317ed6510eb7587c9e9243fb6ebc4e87
Jamshid
09:57 PM
[Airbyte to Typesense] I want to set the enable_nested_fields to true, in here: https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/destination-typesense/destination_typesense/destination.py and use a custom connector to serve my needs. Collection is created on line 39. Any suggestions on how I can pass that parameter? Thanks!
Jun 21, 2023 (3 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:16 AM
Line 39 would be:

client.collections.create({"name": steam_name, "fields": [{"name": ".*", "type": "auto"}], "enable_nested_fields":true})
heart1
Jamshid
Photo of md5-317ed6510eb7587c9e9243fb6ebc4e87
Jamshid
09:51 PM
Jason it should be actually this way:

client.collections.create({"name": steam_name, "fields": [{"name": ".*", "type": "auto"}], "enable_nested_fields":True})

Now it works!
+11