AnsweredAssumed Answered

Lucene query dont return all node properties

Question asked by miguelsuarez on Oct 28, 2010
Latest reply on Nov 15, 2010 by openpj
Hi, i´m trying to find some documents in my repository with lucene querys throught webservice. Everything works fine, but in the ResultSetRow[],in each row I only recive one NamedValue (the path).

My query is:

           RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();              
          
           // Get a reference to the space we have named
           Reference reference = new Reference(Constants.STORE, null, "/app:company_home/cm:apptrabsoc/*[@cm:name=\"" + spaceName + "\"]");
           Predicate predicate = new Predicate(new Reference[]{reference}, null, null);       
           Node[] nodes = repositoryService.get(predicate);
          
           // Create a query object, looking for all items with alfresco in the name of text
           Query query = new Query(
                 org.alfresco.webservice.util.Constants.QUERY_LANG_LUCENE,
                   "+PARENT:\"workspace://SpacesStore/"+ nodes[0].getReference().getUuid() + "\" +TEXT:\"" + searchValue + "\"");
          
           // Execute the query
           QueryResult queryResult = repositoryService.query(Constants.STORE, query, false);

Is there anything wrong? shoud I stablish something to get all properties ?

Thanks in advance

Outcomes