As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
SearchParameters sp = new SearchParameters(); sp.addStore(new StoreRef(REPOSITORY_STOREREF)); //"workspace://SpacesStore" sp.setLanguage(SearchService.LANGUAGE_LUCENE); String query = documentNameParam + " AND TYPE:\"content\""; // filename AND TYPE:"content" sp.setQuery(query); ResultSet resultSet = null; try { System.out.println("NodeRef meeting for search critria…: " + sp.getQuery()); resultSet = searchService.query(sp); for(ResultSetRow row : resultSet) { System.out.println("NodeRef: " + row.getNodeRef()); documentNodeRefs.add(row.getNodeRef()); } } finally { if(resultSet != null) { resultSet.close(); } }