Lucene and fts-search
var luceneQuery = "@somecomodel\\:"+verifyKey+":"+verifyId;
//e.g var luceneQuery = "@somecomodel\\:batchName:ratik;
var result = search.luceneSearch(luceneQuery);
===================================================
String query = "PATH:\"/app:company_home/app:dictionary/app:space_templates/cm:"+templateName+"/cm:\"";
ResultSet rs = searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_LUCENE,query);
childList = rs.getChildAssocRefs();
===================================================
String BASE_QUERY = "PATH:\"/app:company_home/st:sites/*\" AND TYPE:\"" + SiteModel.TYPE_SITE + "\" AND @" + SomeCoModel.PREFIX_CONTENT + "\\:" + SomeCoModel.PROP_PROJECT_NUMBER.getLocalName() + ":\"" +PROJECT_NUMBER + "\"";
ResultSet resultSet = searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_FTS_ALFRESCO, query);
List<NodeRef> nodeRefs = resultSet.getNodeRefs();
===================================================
db-cmis
select D.cmis:objectId from cmis:document as D join mytestref:testAspect as A on
D.cmis:objectId = A.cmis:objectId
===================================================
fts-alfresco
ASPECT:"mytestref:testAspect" OR ASPECT:"mytestref:isDocAssoc" OR ASPECT:"mytestref:isFolderAssoc"
ASPECT:"demo:hasMovedAspect" AND @demo:listOfMovedNodeRefs:"workspace://SpacesStore/3********************888"
===================================================
curl -u admin:admin "http://localhost:8080/alfresco/service/api/query/mytest-testname/mytest-testname/transaction/action?verbose=true&value=Edit%20Properties"
curl -u admin:admin "http://localhost:8080/alfresco/service/api/query/mytest-testname?verbose=true&forward=false&limit=100"
==================================================================
ar def =
{
query: "cm:destination:\"" + parentNodeRef + "\"",
language: "fts-alfresco"
};
var results = search.query(def);
=======================================================================
var def =
{
query: "ASPECT:\"testCo:testAspect\" OR ASPECT:\"testCo:isDocAssoc\" OR ASPECT:\"testCo:isFolderAssoc\" ",
language: "fts-alfresco"
};
var results = search.query(def);
Comments
Post a Comment