763764765766767768769770771772773
work.setTemplate(template.getIdentifier()); repository.put(work); SearchQuery q = new SearchQueryImpl(site); q.withoutPublication(); SearchResult result = repository.find(q); assertEquals(1, result.getDocumentCount()); }
331332333334335336337338339340341
Site site = getSite(request); SearchQuery q = new SearchQueryImpl(site); q.withVersion(Resource.WORK); // Only take resources that have not been modified q.withoutPublication(); // Type q.withTypes(Page.TYPE); // Filter query