Closed NikkyAI closed 4 years ago
Query.Filter
Is indeed private but it shouldn't impose an issue in pure Java, but I don't see a reason not to make it public.
As for the ClassCastException
thanks for reporting, I'll push a fix soon.
i tested a bit more and indeed it works fine in java, no idea why kotlin is having issues there seems like some kind of edgecase anyways
@NikkyAI I hope 1.8.1 https://github.com/RediSearch/JRediSearch/releases/tag/v1.8.1 should fix the kotlin issues.
first of all.. i am a total noob in redis and i am doing this using kotlin, so i might be making some really stupid errors here
using version
1.8.0
java 8 and writing my code in kotlini am running redis in docker and i am using https://hub.docker.com/r/redislabs/redismod/ latest
the first block of code
this seems to break because the argument type
Query.Filter
ofaddFilter
is a private inner class so this is being thrown:i tried with java 11 too but there the error just gets more confusing
the other error is more of a runtime error
after adding all the extra fields to the index (looks like it should work) the aggregate qury fails with a classcast exception, seems like jedis returns a JedisDataException that is blindly casted to
byte[]
code
the exception is
and points to here https://github.com/RediSearch/JRediSearch/blob/f48f3f1cf54302eb6c2134634f0aef0af28a4a9e/src/main/java/io/redisearch/AggregationResult.java#L33
when i run this query in RedisInsight i get a error as well, so i guess there is something wrong with the logic as well..