Hi Guys, I am using Java Client to search. Gettin...
# random
a
Hi Guys, I am using Java Client to search. Getting this error:
Copy code
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "highlight" (class org.typesense.model.SearchResultHit), not marked as ignorable (4 known properties: "document", "geo_distance_meters", "highlights", "text_match"])
 at [Source: (String)"{"facet_counts":[],"found":917,"hits":[{"document":"",[truncated 12812 chars]; line: 1, column: 1331] (through reference chain: org.typesense.model.SearchResult["hits"]->java.util.ArrayList[0]->org.typesense.model.SearchResultHit["highlight"])
Can anyone help on this? Thanks
1
k
What version are you using?
a
Copy code
<groupId>org.typesense</groupId>
            <artifactId>typesense-java</artifactId>
            <version>0.0.8</version>
k
Can you try the latest beta version of 0.0.9?
👀 1
a
Copy code
org.typesense:typesense-java:jar:0.0.9 was not found
k
Try 0.0.9-beta8 Its not yet fully published
👀 1
Does it work?
a
Thanks, it worked. But, Can we go on production with this beta version?
k
Yes the beta tag is because I was debugging an issue with duplicate classes on Android. Otherwise this is stable. I will release it in the next few days.
a
Copy code
[Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'] with root cause
java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'
Looks like there are still many issues in API. Got above error while updating the document:
Copy code
collection.documents(id).update(attributeMap)
1
Found the issue. Upgraded the
okhttp
version and it's working 🚀 There was conflict dependency of
okhttp
.