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.
public void searchAVM() { ServiceRegistry serviceRegistry = null; StoreRef myWcm = new StoreRef("avm://crhn/-1;www;avm_webapps;ROOT;contenu"); SearchParameters sp = new SearchParameters(); sp.addStore(myWcm); sp.setLanguage(SearchService.LANGUAGE_LUCENE); sp.setQuery("TEXT:*a*"); ResultSet results = null; try { results = serviceRegistry.getSearchService().query(sp); for(ResultSetRow row : results) { NodeRef currentNodeRef = row.getNodeRef(); System.out.println(currentNodeRef.getId()); } } finally { if(results != null) { results.close(); } } }
TEXT:"*a*"
sp.setQuery("TEXT:\"*a*\"");