private Map<String,Set<String>> resolveSearchRoutingAllIndices(MetaData metaData,String routing){
  if (routing != null) {
    Set<String> r=Strings.splitStringByCommaToSet(routing);
    Map<String,Set<String>> routings=newHashMap();
    String[] concreteIndices=metaData.concreteAllIndices();
    for (    String index : concreteIndices) {
      routings.put(index,r);
    }
    return routings;
  }
  return null;
}

private Map < String , Set < String > > resolveSearchRoutingAllIndices ( MetaData metaData , String routing ) { if ( routing != null ) { Set < String > r = Strings . splitStringByCommaToSet ( routing ) ; Map < String , Set < String > > routings = newHashMap ( ) ; String [ ] concreteIndices = metaData . concreteAllIndices ( ) ; for ( String index : concreteIndices ) { routings . put ( index , r ) ; } return routings ; } return null ; }
sets the same routing for all indices
