> I'm still fairly new to solr, so please bear with me. > I'm having an amount of difficulty doing a search inside an > update request processor (as in, > solr.update.processor.UpdateRequestProcessorChain ) that I'm > trying to write. As far as I can see there's two main > options, each of which is presenting a problem for me: > > (1) Getting a searcher from req, i.e. SolrIndexSearcher > searcher = req.getSearcher(). The problem here is that I > don't see how to get a SolrDocumentList or similar from > this, only regular Lucene schema-less Documents.
There is a SolrPluginUtils class that you can use. With this you can convert Lucene schema-less Documents to SolrDocumentList SolrDocumentList list = docListToSolrDocumentList(docList, req.getSearcher(), fields, null); for (final SolrDocument document : list) {..} http://lucene.apache.org/solr/api/org/apache/solr/util/SolrPluginUtils.html