AnsweredAssumed Answered

more question about query

Question asked by qoszhao on Mar 29, 2006
Latest reply on Apr 4, 2006 by qoszhao
I built their web service client jar with updated url.
Created a project. Created a web service client based on there samples.
Added WSS4J, AXIS, XML Security lib, openSAML to the project.
Did a query using:

RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();  
           
            // searchValue=/cm:Test/cm:Test2/cm:jbivision.pdf
            Query query = new Query(QueryLanguageEnum.lucene, "PATH:\"/" + searchValue + "\"");
           // Query query = new Query(QueryLanguageEnum.lucene, "PATH:\"//.\"");
            QueryResult queryResult = repositoryService.query(STORE, query, true);

            //query = null; //Result = repositoryService.query(STORE, query, true);
            ResultSet result = queryResult.getResultSet();
           
            uri = result.getRows(0).getColumns(10).getValue();

It returned me only one result, seems this works..

What I am not clear is:

1) I used cm:/Test/cm:Test2 to represent /Test/Test2 directory, is this correct?
2) From the debugger, I saw queryResult Row0 Column10: source is the same as the location I get:
WorkSpace://SpacesStore/…..

is this the right one? How do I get the full URI path based on this?

3) I also noticed there is a contentUrl in Column4, is it something we need for the URI? Based on my observation, its value is different from the
file location.

Thanks.

Outcomes