Description
Getting the results from a query that as child documents results in "parsing error" when using SolrClient's queryAndStreamResponse(), but not when using the regular query() method.
The bug is caused by StreamingBinaryResponseParser's JavaBinCodec override of readSolrDocument which always returns null (the document is instead passed to the callback), but JavaBinCodec uses the method to also decode child documents.
I have fixed this by using a simple nestedLevel variable that can be used to detect if the document being parsed is a child (and should be returned) or a parent (and should be passed to the callback).
The fix feels kinda hacky, but it is simple. Link to a Github pull request to follow.
Attachments
Issue Links
- links to