AnsweredAssumed Answered

Full Text Query

Question asked by sanjaybandhniya on Jan 10, 2019

I am trying to call fulltext query below way using java.Is this correct way to call?

 

query.append("PATH:\"/").append(Constants.COMPANY_HOME_PATH).append("/").append(Constants.SITES_PATH)
.append("/cm:").append(siteId).append("/cm:").append(Constants.DOCUMENT_LIBRARY).append("/cm:")
.append(" AND TYPE:\"cm:folder\"").append(" AND @cm\\:")
.append(ContentModel.PROP_CREATOR.getLocalName()).append(":\"").append(currentUser).append("\"");

ResultSet rs = searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE,SearchService.LANGUAGE_FTS_ALFRESCO, query.toString());

Outcomes