#community-help

Joining Collections in TypeSense

TLDR Ahmed inquired about joining collections in TypeSense, Jesse informed this feature is in beta and will be in the upcoming release.

Powered by Struct AI
Jul 28, 2023 (4 months ago)
Ahmed
Photo of md5-051f535431ff484f44f165e9a0b696a5
Ahmed
10:23 PM
Can we join these collections? search posts collection and returns the customers data along with the post? its a bit different than the demo

Posts collection
{
  "name":  "Posts",
  "fields": [
    {"name": "post_id", "type": "string"},
    {"name": "post_text", "type": "string"},
    {"name": "customer_id", "type": "string", "reference": "Customers.customer_id"}
  ]
}

Customers collection
{
  "name":  "Customers",
  "fields": [
    {"name": "customer_id", "type": "string"},
    {"name": "customer_name", "type": "string"}
  ] 
}
Jul 30, 2023 (4 months ago)
Jesse
Photo of md5-72cd246b57acc3175ff86dc07bf585ed
Jesse
11:09 PM
At the moment there is a beta version of this, but it looks to be implemented in the next release of TypeSense - https://github.com/typesense/typesense/issues/229#issuecomment-1645573572