small refactoring solr