As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
[…] String searchCriteria = "+@cm\\:title:\"Test\""; Query query = new Query(Constants.QUERY_LANG_LUCENE, searchCriteria); Node[] nodes = repositoryService.get(new Predicate(null, spacesStore, query)); […]
@\{http\://www.alfresco.org/model/content/1.0\}title:'Test"
There's an example on the wiki: http://wiki.alfresco.com/wiki/Search#Finding_nodes_by_content_mimetype@\{http\://www.alfresco.org/model/content/1.0\}title:'Test"
That's how Lucene needs to receive it, so obviously you'll need some extra escaping in the client code.
its "org.alfresco.repo.search.impl.lucene.LuceneQueryParser" - Eclipse should easily find it 🙂