@Test void searchDisabled_simplerIndexTemplate() throws Exception {
    storage.close();
    storage = ElasticsearchStorage.newBuilder(() -> WebClient.of(server.httpUri()))
      .searchEnabled(false)
      .build();

    server.enqueue(AggregatedHttpResponse.of(HttpStatus.OK, MediaType.JSON_UTF_8,
      "{\"version\":{\"number\":\"6.0.0\"}}"));
    server.enqueue(AggregatedHttpResponse.of(HttpStatus.NOT_FOUND)); // get span template
    server.enqueue(SUCCESS_RESPONSE); // put span template
    server.enqueue(SUCCESS_RESPONSE); // get dependency template
    server.enqueue(SUCCESS_RESPONSE); // get tags template
    storage.ensureIndexTemplates();
    server.takeRequest(); // get version
    server.takeRequest(); // get span template

    assertThat(server.takeRequest().request().contentUtf8()) // put span template
      .contains(
        """
          "mappings": {
            "span": {
              "properties": {
                "traceId": { "type": "keyword", "norms": false },
                "annotations": { "enabled": false },
                "tags": { "enabled": false }
              }
            }
          }
        """);
  }
Much simpler template which doesn't write the timestamp_millis field
zipkin-storage/elasticsearch/src/test/java/zipkin2/elasticsearch/ElasticsearchSpanConsumerTest.java