perhaps instead of a build method that returns a document, it just just be
a void processInputDocument method with usage like...

   DocumentBuilder b = ....;
   for (SolrInputDocument i : ...) {
     b.startDoc()
     b.processInputDocument(i);
     b.endDoc()
     doSOmethingWith(b.getDoc());
   }


interesting, I was imagining this type of processing to happen in:

http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/handler/UpdateRequestProcessor.java

This is a place that has full access to the request and is passed the command and document:

public void processAdd( AddUpdateCommand cmd, SolrInputDocument doc );

Reply via email to