/** * Converts the docs into a solr document list. * * @param docs The {@link org.apache.solr.search.DocList} to convert * @param searcher The {@link org.apache.solr.search.SolrIndexSearcher} to use to load the docs from the Lucene index * @param fields The names of the Fields to load * @param ids A map to store the ids of the docs * @return the docs as solr document list. * @throws IOException if bad things happen. */ @Override public SolrDocumentList docListToSolrDocumentList(DocList docs, SolrIndexSearcher searcher, Set<String> fields, Map<SolrDocument, Integer> ids) throws IOException { return SolrPluginUtils.docListToSolrDocumentList(docs, searcher, fields, ids); } }
if (results instanceof DocList) { try { docs = SolrPluginUtils.docListToSolrDocumentList ((DocList) results, (SolrIndexSearcher) eval.getSearcher().getWrappedSearcher(), fieldNames, null); } catch (IOException e) {