Is there any way I can convert a SolrDocumentList to a DocList and set it in the QueryResult object?
Or, the workaround adding a SolrDocumentList object to the QueryResult object?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a method called addOrReplaceResults in SolrPluginUtils that, given a SolrQueryResponse, replaces the DocList if it is in the result. Otherwise adds it to the response.