10-03-2008 08:48 AM
10-29-2008 10:14 AM
10-29-2008 02:34 PM
10-29-2008 04:37 PM
11-04-2008 09:14 AM
11-04-2008 12:39 PM
public static final List<QName> QUERY_PROPERTIES = new Vector<QName>(6, 1) {
private static final long serialVersionUID = 5649490531607878780L;
{
add(ContentModel.PROP_NAME);
add(ContentModel.PROP_CREATOR);
add(ContentModel.PROP_CREATED);
add(ContentModel.PROP_MODIFIED);
add(ContentModel.PROP_CONTENT);
add(ContentModel.PROP_AUTHOR);
}
};
/**
* Produces a Lucene query that would get all content and folder nodes, except system folders, within the supplied path
* non-recursively.
*/
public static final String FORMAT_QUERY = "+PATH:\"%s/*\" +(TYPE:\"" + ContentModel.TYPE_FOLDER
+ "\" OR TYPE:\"" + ContentModel.TYPE_CONTENT + "\") -TYPE:\"" + ContentModel.TYPE_SYSTEM_FOLDER + "\"";
String queryStr = String.format(FORMAT_QUERY, "/app:company_home/cm:My Folder");
/**
* Return a maximum of 100 nodes inside the given folder path
*/
List<Node> results = searchService.query(ticket, new StoreRef("workspace://SpacesStore"),
SearchService.QueryLanguage.lucene, queryStr,
new Vector<QName>(QUERY_PROPERTIES), false, false, false, false,
null, 100, null);
11-17-2008 06:52 PM
01-27-2009 05:48 AM
Guido,
The sample demo file for RAAr is available here:
http://docs.rivetlogic.com/projects/cma/1.7.1/samples/raar-sample-1.zip
http://docs.rivetlogic.com/projects/cma/1.7.1/samples/raar-sample-1.tar.gz
- Praveen C Elineni
01-27-2009 07:33 AM
01-29-2009 04:17 PM
02-03-2009 07:44 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.