public void save(String type,List<ElasticSearchDoc> docs){
  if (docs != null && !docs.isEmpty()) {
    List<List<ElasticSearchDoc>> partitionedDocs=Lists.partition(docs,100);
    partitionedDocs.forEach(null);
  }
}

public void save ( String type , List < ElasticSearchDoc > docs ) { if ( docs != null && ! docs . isEmpty ( ) ) { List < List < ElasticSearchDoc > > partitionedDocs = Lists . partition ( docs , 100 ) ; partitionedDocs . forEach ( null ) ; } }
bulk save of the entities
