<BUG>public void should_process_result_with_nested_missing_and_terms_aggregations() throws Exception {esTester.putDocuments(INDEX, TYPE,newTagsDocument("noTags"),newTagsDocument("oneTag", "tag1"),newTagsDocument("twoTags", "tag1", "tag2"),newTagsDocument("twoTags", "tag1", "tag2", "tag3"),newTagsDocument("twoTags", "tag1", "tag2", "tag3", "tag4"));</BUG><CONTEXT>Facets facets = new Facets(search.get());assertThat(facets.getFacets()).isEmpty();assertThat(facets.getFacetKeys(FIELD_TAGS)).isEmpty();}@Test<extra_id_0>SearchRequestBuilder search = esTester.client().prepareSearch(INDEX).setTypes(TYPE)</CONTEXT>
esTester.index(INDEX, TYPE, "noTags", newTagsDocument("noTags"));esTester.index(INDEX, TYPE, "oneTag", newTagsDocument("oneTag", "tag1"));esTester.index(INDEX, TYPE, "fourTags", newTagsDocument("fourTags", "tag1", "tag2", "tag3", "tag4"));