Closed peio-burucoa closed 2 years ago
Hey ! I'm working with @peio-burucoa and we just found out that we had an error in the configuration of the index. Using the keyword SORTABLE while creating the index by hand is fixing the issue.
However, we had another issue with searching data which expires:
java.lang.UnsupportedOperationException: null
at java.base/java.util.AbstractMap.put(AbstractMap.java:209)
at io.lettuce.core.output.MapOutput.set(MapOutput.java:53)
at com.redislabs.lettusearch.output.SearchOutput.set(SearchOutput.java:60)
at io.lettuce.core.protocol.RedisStateMachine.safeSet(RedisStateMachine.java:810)
at io.lettuce.core.protocol.RedisStateMachine.handleNull(RedisStateMachine.java:392)
The issue appears to be there => https://github.com/redis-developer/lettucemod/blob/master/subprojects/lettucemod/src/main/java/com/redis/lettucemod/output/SearchOutput.java#L72. No null
check on bytes
while setting it into nested
map. Hence the error.
Could a fix be planned for that ? Cheers !
Thanks for reporting this issue. I added a fix and will issue a release shortly
Hi there, We've been facing the following NullPointerException while using lettucemod 2.18.2 with RediSearch:
Here is a quick example to reproduce the issue (a Redis instance running on port 16379 is required):
This should throw a NullPointerException after data started to expire. Without the
SortBy
search options this example does NOT throw a NPE. Same without the slight delay between every save operation.