AnsweredAssumed Answered

[RESOLVED] SearchService issue with Alfresco 3.0 SP1

Question asked by lascaux on Mar 20, 2009
Latest reply on Mar 23, 2009 by lascaux
Hi,

I'm trying to get a space based on its path.
for example, if the folder path is /app:company_home/cm:MyProject/cm:Folder (I confirmed the path is correct getting it from the nodeRef using its uuid)
I perform the following :
ResultSet lResultSet = searchService.query(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore"), SearchService.LANGUAGE_LUCENE, "+PATH:\"/app:company_home/cm:MyProject/cm:Folder\"");
this query raised a null Exception

I tried several query and all are raising a null exception (hard to debug with no indication) such as
ResultSet lResultSet = searchService.query(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore"), SearchService.LANGUAGE_LUCENE, "+@cm\\:name:Folder +PATH:\"/app:company_home/cm:MyProject\"");

If someone can help me …

Thanks

Sylvain

Outcomes