solr indexing optimized. Some changes in graph creation code