AnsweredAssumed Answered

Lucene query into Web projects

Question asked by lourdes on May 22, 2008
Latest reply on May 27, 2008 by lourdes
Hello,

I do not know how to find a draft wcm. To search the spaces I have no problem. In projects that I think the wrong path, but I do not know what make and I can not find documentation.

I have the following structure in Alfresco: company-home \ web projects \
proyecto1
proyecto2
proyecto3

What I have to put me look inside proyecto2 content?

I find that I get a Web projects:

spaceName = "Web Projects";
searchValue = "Lourdes";

Store Store = new Store (Constants.WORKSPACE_STORE, "SpacesStore");
Reference reference = new Reference (Store, null, "/ app: company_home / * [@ cm: name = \" "+ + spaceName" \ "]");


Predicate predicate = new Predicate (new Reference [] () reference, null, null);
Node [] = repositoryService.get nodes (predicate);

Query query = new Query (
Constants.QUERY_LANG_LUCENE,
"+ PARENT: \" workspace: / / SpacesStore / "+ nodes [0]. GetReference (). GetUuid () +" \ "+ TEXT: \" "searchValue + +" \ "");


But if I want to look within Project 2, this does not work for me:
Store Store = new Store ( "AVM", "Proyecto2");
Reference reference = new Reference (Store, null, "/ cm: www / cm: avm_webapps / cm: ROOT");
español  » inglés  Traduzca 


The truth that I can not function well in the search for the webprojects wcm. Within the space I have no problems

Is there anyone who has worked?

It seems that that is not going well.
I do not know how to reference node father, tell me search for content within the entire folder of the project, etc.

Does anyone have some examples?

Insurance that is nonsense, but not work for me
It seems to me that it look at the root, but I also found the xsd of webform that I have associated with the project??
I have a project with documents and I want to look inside content and depth

Outcomes