redisearch-go
redisearch-go copied to clipboard
nil results panic (maybe a document expiry issue?)
On occasion some document results may return a valid key but the document value is nil.
Unfortunately I don't yet have a specific repeatable case but the theory/suspicion is:
- JSON Document Added and Expiry is Set
- Search is run
- Document expires during query
- Document returned has valid key, but value is nil.
This is unhandled when casting inside loadDocument()
which completely crashes reading of data.
Proposed solution is to handle cast errors appropriately. Will submit a new PR shortly with implementation.