@Test public void testTemplateSearch() throws IOException { underTest.templates("/apps/foo", "/apps/bar"); assertEquals("{\"query\":" + "{\"bool\":" + "{\"filter\":" + "[" + "{\"terms\":" + "{\"cq:template\":" + "[" + "\"/apps/foo\"," + "\"/apps/bar\"" + "]" + "}" + "}]}}}", underTest.serialize()); }
public PageSearch templates(String... resourceTypes) { query().bool().filter().terms("cq:template", resourceTypes); return this; }
PageSearch extends Search { public PageSearch templates(String... resourceTypes) { query().bool().filter().terms("cq:template", resourceTypes); return this; } }
PageSearch extends Search { public PageSearch templates(String... resourceTypes) { query().bool().filter().terms("cq:template", resourceTypes); return this; } PageSearch(ElasticSearchService elasticSearchService, String index); }
PageSearch extends Search { public PageSearch templates(String... resourceTypes) { query().bool().filter().terms("cq:template", resourceTypes); return this; } PageSearch(ElasticSearchService elasticSearchService, String index); PageSearch templates(String... resourceTypes); PageSearch path(String path); PageSearch title(String title); PageSearch newestFirst(boolean newestFirst); }
PageSearch extends Search { public PageSearch templates(String... resourceTypes) { query().bool().filter().terms("cq:template", resourceTypes); return this; } PageSearch(ElasticSearchService elasticSearchService, String index); PageSearch templates(String... resourceTypes); PageSearch path(String path); PageSearch title(String title); PageSearch newestFirst(boolean newestFirst);  }