Having Java API for Typesense is great... but some...
# community-help
n
Having Java API for Typesense is great... but somehow "delete collection" does not work: https://github.com/typesense/typesense-java/issues/45 I just reproduced this bug...
k
I've merged your PR. I will look into what's happening here.
To retrieve a collection:
Copy code
client.collections("Countries").retrieve();
This throws an
org.typesense.api.exceptions.ObjectNotFound
exception when the collection is not found.
n
This "delete bug" is not easy to reproduce. I saw it trying to delete and than immediately to create collection with the same name. All in Java code, with Typesense Java API. I have to say, I did A LOT of upserts into this collection before, during several day (basically experimented with Typesense over a week, importing almost same documents but with slightly different schema)
Now I changed the collection name and... looks like this bug is gone. There was no upserts/inserts into this new collection, I just saw that combination of ...delete and ...create works Will experiment with this and share results...