Typesense.js Client and SearchOnlyClient Confusion
TLDR After resolving an initial connection issue, Darren queried about his inability to use the 'upsert' method in Typesense.js. Jason suggested he might be using the wrong client.
Dec 14, 2021 (25 months ago)
Darren
11:08 PMAlthough I'm not yet able to write docs to a collection - using the Admin API Key from the downloaded keys file within a Firebase Function, I can create a client, but I cannot upsert docs - the
upsert
method doesn't exist on the documents()
object. In the debugging there is a class SearchOnlyDocuments
- is this a collection configuration issue/parameter or this related to the APIKey? (even though I'm using the Admin API Key)Jason
11:11 PMIt sounds like you might be using the SearchOnlyClient from typesense.js. You want to use Client
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Typesense js client upgrade: API key and SearchClient issues
Janaka had issues with the API key showing in the query string after upgrading the Typesense js client and noticed a change in the `retrieve()` method's behavior. Jason explained the change and advised on the API key issue, asking Janaka to create a Github issue for it which was done.
Setup and Issues in Connecting Typesense Instance with Firebase Emulator
Michael.M seeks help on connecting a local Typesense instance to the Firebase local emulator. Jason suggests looking at emulator commands and creating a specific file. After various attempts and troubleshooting steps, Michael.M is able to establish the connection.
Resolving Typesense Server Connection with Correct API Keys and Paths
Rubai had trouble creating a working API key for Typesense and understanding number_hits versus num_documents. Jason provided clarification and correct code for generating a search-only API Key and using correct server configurations.