#community-help

Upgrading and Fixing Issue with Typesense-JS Version 0.24.0

TLDR Leonardo had issues with the upgraded Typesense-JS version 0.24.0, particularly on unrecognized fields. Jason resolved it by issuing updates and adding the missing fields.

Powered by Struct AI

2

9
10mo
Solved
Join the chat
Feb 03, 2023 (10 months ago)
Leonardo
Photo of md5-9d7206f7cdefd2da899e7fcfc9126cf1
Leonardo
04:58 PM
Hey! We've just upgraded to 0.24.0 since nested fields search is a must for us now, and we are also using typesense-js ^1.5.0.
Is it possible that typesense-js ^1.5.0 is not fully typed for this new version? (fields like enabled_nested_fields and field type object are not recognized)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:59 PM
Oh hmm, will push out an update for it shortly.
Leonardo
Photo of md5-9d7206f7cdefd2da899e7fcfc9126cf1
Leonardo
04:59 PM
No rush, thanks!
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:11 PM
Could you try with 1.5.1-0?
Leonardo
Photo of md5-9d7206f7cdefd2da899e7fcfc9126cf1
Leonardo
05:13 PM
Now it works, will check that the collection creation works as expected, but the typescript part is fixed. Thanks!

1

Feb 08, 2023 (10 months ago)
Leonardo
Photo of md5-9d7206f7cdefd2da899e7fcfc9126cf1
Leonardo
04:03 PM
Hey! One more question related to this, is it possible that this same problem happens with the return_id paramenter of the batch import? (paremeter not typed)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:51 PM
Yup, missing types. Will add that in
08:11
Jason
08:11 PM
Leonardo v1.5.2 now has those types
Leonardo
Photo of md5-9d7206f7cdefd2da899e7fcfc9126cf1
Leonardo
08:13 PM
Excellent, thank you so much!

1

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3005 threads (79% resolved)

Join Our Community

Similar Threads

Troubleshooting Typesense Document Update Error

Mehdi had an issue with updating Typesense documents which returned a '404 Not Found' error. Kishore Nallan after several debugging steps, discovered Mehdi was using an outdated Typesense version. The issue was resolved after upgrading Typesense.

2

32
30mo
Solved

Fixing "bad json" error in Typesense 0.24

Adam experiences "bad json" error when creating collections in Typesense 0.24. Jason identifies a typo in the docs causing the error and helps troubleshoot additional errors.

5

23
9mo
Solved

Handling Kinesis Stream Event Batching with Typesense

Dui had questions about how to handle Kinesis stream events with Typesense. Kishore Nallan suggested using upsert mode for creation/update and differentiating with logical deletion. After various discussions including identifying and resolving a bug, they finalized to introduce an `emplace` action in Typesense v0.23.

8

91
24mo

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.

7

57
6mo
Solved

Troubleshooting 400 Error When Upgrading Typesense Firestore Extension

Orion experienced a `400` error after updating the Typesense Firestore extension, causing issues with cloud functions. They traced the issue back to a data type conflict in their Typesense collection schema after updating. With help from Jason and Kishore Nallan, they resolved the issue by recreating the collection.

5

96
14mo
Solved