Hi all,i hava a main java class creating a spaces using foundation API with this methodprivate static NodeRef createFolder(ServiceRegistry serviceRegistry, NodeRef node, String name) {
Map<QName, Serializable> contentProps = new HashMap<QName, Serializable>();
contentProps.put(ContentModel.PROP_NAME, name);
contentProps.put(ContentModel.PROP_DESCRIPTION, name);
NodeService nodeService = serviceRegistry.getNodeService();
ChildAssociationRef association = nodeService.createNode(node, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, name), ContentModel.TYPE_FOLDER, contentProps);
return association.getChildRef();
}when i try to search it with lucene - PATH:"/app:company_home/cm
arentSpace/*" i don't find it.I have also a main java class creating a spaces using webservice API with this code ParentReference parentReference = new ParentReference(STORE, null, parentFolder, Constants.ASSOC_CONTAINS, Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, realfolderName));
// Create folder
NamedValue[] properties = new NamedValue[] { Utils.createNamedValue(Constants.PROP_NAME, realfolderNameRepalced), Utils.createNamedValue(Constants.PROP_DESCRIPTION, realfolderNameRepalced) };
CMLCreate create = new CMLCreate("1", parentReference, null, null, null, Constants.TYPE_FOLDER, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[] { create });
UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);when i try to search it with lucene - PATH:"/app:company_home/cm
arentSpace/*" i find it.Why the lucene search doesn't work (using foundation API creating the space)?Regards,Francesco