05-23-2014 02:50 PM
05-23-2014 09:02 PM
http://alf01:8080/alfresco/s/slingshot/search
is a webscript api not javascript api .Event if it is implemented using javascript search api ,it dose some encapsulation on parameter name and parameter format.and also it's purpose is for share ,co contain some parameter like site./slingshot/search
webscript api :
site the site identifier to search into, null for all sites
term: search terms
tag: search tag
query: advanced search query json
sort: sort field ,it's format is like this sort fied|sort order,default sort order is asc ,for example:@cm:name|true,@cm:name,TYPE|false
var sort1 =
{
column: "@cm:modified",
ascending: false
};
var sort2 =
{
column: "@cm:name",
ascending: true
};
var paging =
{
maxItems: 20,
skipCount: 0
};
var def =
{
query: "+PATH:\"/app:company_home/cm:TESTFOLDER1//*\" +@cm\:title:\"banana\"",
store: "workspace://SpacesStore",
language: "fts-alfresco",
sort: [sort1, sort2],
page: paging
};
var results = search.query(def);
05-26-2014 09:58 AM
05-26-2014 10:23 AM
repo=true
05-29-2014 01:55 PM
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.