TLDR suraj faced an API key error and sorting issue in their Java code. Kishore Nallan provided guidance, and after rechecking the fields, suraj confirmed that all issues were resolved.
Can you please post the full gist along with client initialisation? Typically this error means a bad API key is used. Check if key has write permissions.
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.24.0 --data-dir /data --api-key=*Hu52dwsas2AdxdE*
Have used this in my windows machine
while create=ing client I am passing abive api-key
I mean the full Java code
Hmm that looks fine. None of the other endpoints like health works also?
for health - { "ok": *true* }
getting response
Can you tell me the version of Java client used? I'm afk at the moment, will get back to you later after checking.
API issue is solved however while testing I found out that somehow sorting is not working..Am i using it wrong?
Have added code and response
> API issue is solved What was the issue? > somehow sorting is not working Can you elaborate what you are expecting vs what you are getting? You're sorting by `ratings_count:desc` and I see that the responses are indeed in descending order of the value of the ratings_count field.
Thanks Kishor, I was checking the wrong field. All issues are sesolved
suraj
Sat, 25 Mar 2023 05:54:57 UTCcan anybody help me on this?