Hi,
We have a requirement wherein we need to find all documents with the specific meta-data, we have generated the client stubs using apache cxf
There are 3 documents which is having unique meta-data.
But we have set specific meta-data in the client stubs(which has only 1 document associated with that meta-data),
in response we are getting all the 3 document results.
Expected result is only 1 document
Actual result obtained is 3 document.
Can you please help us in resolving the above issue.
Refer the below code which we have used.
We have a requirement wherein we need to find all documents with the specific meta-data, we have generated the client stubs using apache cxf
There are 3 documents which is having unique meta-data.
But we have set specific meta-data in the client stubs(which has only 1 document associated with that meta-data),
in response we are getting all the 3 document results.
Expected result is only 1 document
Actual result obtained is 3 document.
Can you please help us in resolving the above issue.
Refer the below code which we have used.
Code: Select all
{
System.out.println("Invoking find...");
java.lang.String _find_token = "322754b3-1c84-463d-9bb3-e3c46d9e18bb";
gov.state.nextgen.okm.search.QueryParams _find_params = new gov.state.nextgen.okm.search.QueryParams();
QueryParams.Properties qpm = new QueryParams.Properties();
QueryParams.Properties.Entry entry = new QueryParams.Properties.Entry();
entry.setKey("Name");
entry.setValue("Tushar");
qpm.getEntry().add(entry);
_find_params.setPath("/okm:root/");
_find_params.setProperties(qpm);
_find_params.setDomain(1);
try {
java.util.List<gov.state.nextgen.okm.search.QueryResult> _find__return = port.find(_find_token, _find_params);
for (QueryResult queryResult : _find__return) {
System.out.println("find.queryResult=" + queryResult.getDocument().getPath());
}
System.out.println("find.result=" + _find__return);
} catch (ParseException_Exception e) {
System.out.println("Expected exception: ParseException has occurred.");
System.out.println(e.toString());
} catch (DatabaseException_Exception e) {
System.out.println("Expected exception: DatabaseException has occurred.");
System.out.println(e.toString());
} catch (RepositoryException_Exception e) {
System.out.println("Expected exception: RepositoryException has occurred.");
System.out.println(e.toString());
} catch (IOException_Exception e) {
System.out.println("Expected exception: IOException has occurred.");
System.out.println(e.toString());
}
}
Attachments
4.JPG (73.83 KiB) Viewed 2091 times
3.JPG (71.09 KiB) Viewed 2091 times
2.JPG (66.8 KiB) Viewed 2091 times
1.JPG (72.27 KiB) Viewed 2091 times
