AnsweredAssumed Answered

searching by uuid problem

Question asked by spilby on May 28, 2014
Latest reply on May 29, 2014 by spilby
I'm trying to search a node by the uuid, but don't works.

This is my query:



PATH: "//app:company_home/app:user_homes/cm:APG//." AND @sys\:node-uuid:"9c7e7c6c-f729-4aff-98ed-8e2ff0ceaf85"


And my code for the search:

SearchParameters sp = new SearchParameters();
sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery(query);
ResultSet results = getSearchService().query(sp);

What's wrong in my query?

I can see in the properties that exists:

{http://www.alfresco.org/model/system/1.0}node-uuid=9c7e7c6c-f729-4aff-98ed-8e2ff0ceaf85

Thanks!

Outcomes