code: static String[] computeTemplates(String[] templates, String classpathRoot) {
          if (templates == null || templates.length == 0) {
              if (logger.isDebugEnabled()) {
                  logger.debug("Automatic discovery is activated. Looking for template files in classpath under [{}].",
                          classpathRoot);
              }
  
              ArrayList<String> autoTemplates = new ArrayList<>();
  
              try {
                  // Let's scan our resources
                  List<String> scannedTemplates = TemplateFinder.findTemplates(classpathRoot);
                  for (String template : scannedTemplates) {
                      autoTemplates.add(template);
                  }
  
                  return autoTemplates.toArray(new String[autoTemplates.size()]);
              } catch (IOException|URISyntaxException e) {
                  logger.debug("Automatic discovery does not succeed for finding json files in classpath under " + classpathRoot + ".");
                  logger.trace("", e);
              }
          }
          return templates;
      }
docs: We use convention over configuration : see https://github.com/dadoonet/spring-elasticsearch/issues/3