AnsweredAssumed Answered

[SOLVED] Lucene Search for metadata - yes again

Question asked by mwildam on Apr 14, 2010
Latest reply on Oct 1, 2010 by mwildam
I searched the forum, the wiki and even Google and I find a lot of information of what should work when using the API and lucene to search for meta data.

Basically the only thing, what works is:
            String searchCriteria = "+@cm\\:title:\"Test\"";
            Query query = new Query(Constants.QUERY_LANG_LUCENE, searchCriteria);
            Node[] nodes = repositoryService.get(new Predicate(null, spacesStore, query));
BUT: Nowhere through the API I can read the short prefix ("cm" in this case) - For other namespaces I don't have a single idea how that prefix could be - however, I know the long full names, like:

How the hack can I use the full name in my search criteria? - Documentation says I can, but I can't get it to work. How can this be achieved?