more cosmetic refactoring of indexer.rb sw_solr_doc