Full Text Query

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
sanjaybandhniya
Senior Member

Full Text Query

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());