cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene search by node-uuid?

spilby
Confirmed Champ
Confirmed Champ
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!
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
I think that the PATH query is wrong, have you tried this?


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