12-03-2013 06:03 AM
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
ResultSet rs = searchService.query(storeRef, SearchService.LANGUAGE_XPATH, "/app:company_home/st:sites");
NodeRef companyHomeNodeRef = null;
try
{
if (rs.length() == 0)
{
throw new AlfrescoRuntimeException("Didn't find Company Home");
}
companyHomeNodeRef = rs.getNodeRef(0);
fileFolderService.create(companyHomeNodeRef, "new Folder", ContentModel.TYPE_FOLDER);
}
finally
{
rs.close();
}
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
ResultSet rs = searchService.query(storeRef, SearchService.LANGUAGE_XPATH, "/app:company_home/st:sites/??:new Folder"); <– problems with query !!!
NodeRef companyHomeNodeRef = null;
try
{
if (rs.length() == 0)
{
throw new AlfrescoRuntimeException("Didn't find Company Home");
}
companyHomeNodeRef = rs.getNodeRef(0);
fileFolderService.create(companyHomeNodeRef, "new new Folder", ContentModel.TYPE_FOLDER);
}
finally
{
rs.close();
}
12-03-2013 06:33 AM
12-03-2013 06:35 AM
12-03-2013 06:47 AM
12-03-2013 08:08 AM
12-03-2013 12:43 PM
12-04-2013 05:11 AM
12-13-2013 05:31 AM
Search failed due to: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 11130033 Request failed 400 /solr/alfresco/afts?wt=json&fl=DBID%2Cscore&rows=1000&df=TEXT&start=0&locale=de_DE&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON
12-13-2013 06:42 AM
/app:company_home/st:sites/cm:test/cm:documentLibrary/cm:_x0032_013
search.ISO9075Encode("2013")
12-13-2013 07:35 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.