Modified batch Factor operation. Updated indexing for use of ElasticSearch.