AnsweredAssumed Answered

Search on custom property value

Question asked by sakshik on Aug 1, 2017

The following code works to search documents based on in-built properties eg. cm:description

 

var sort1 =
{
column: "@{http://www.alfresco.org/model/content/1.0}modified",
ascending: false
};

var sort2 =
{
column: "@{http://www.alfresco.org/model/content/1.0}created",
ascending: false
};

var paging =
{
maxItems: 100,
skipCount: 0
};

var def =
{
 query: "cm:description:test*",
store: "workspace://SpacesStore",
language: "fts-alfresco",
sort: [sort1, sort2],
page: paging
};

var results = search.query(def);

 

How do I search based on a custom property eg. pc:state?

Outcomes