SearchCallFactory { String lenientSearch(List<String> indices, @Nullable String type) { return '/' + String.join(",", indices) + "/_search?allow_no_indices=true&expand_wildcards=open&ignore_unavailable=true"; } SearchCallFactory(HttpCall.Factory http); HttpCall<V> newCall(SearchRequest request, HttpCall.BodyConverter<V> bodyConverter);  }
@Test public void lenientSearchOrdersQueryAlphabetically() { assertThat(client.lenientSearch(asList("zipkin:span-2016-10-01"), null)) .endsWith("/_search?allow_no_indices=true&expand_wildcards=open&ignore_unavailable=true"); }