Hi Team,
Kindly let us know is this is the method that we require to use to get the search results ?
or
how could we perform search operation in other way ?
we are using CMIS Connector with CS10.we are using update_1021_2013_02_mswin64 patches and
Enterprise Library Services 10.2.2 .
we are using below Soap header request to get the Documents with some Key Word "Sample"
<soapenv:Body>
<ns:query>
<ns:repositoryId>2000</ns:repositoryId>
<ns:statement>SELECT * FROM cmis:document WHERE CONTAINS('sample')</ns:statement>
<!--Optional:-->
<ns:searchAllVersions>?</ns:searchAllVersions>
<!--Optional:-->
<ns:includeAllowableActions>?</ns:includeAllowableActions>
<!--Optional:-->
<ns:includeRelationships>?</ns:includeRelationships>
<!--Optional:-->
<ns:renditionFilter>?</ns:renditionFilter>
<!--Optional:-->
<ns:maxItems>?</ns:maxItems>
<!--Optional:-->
<ns:skipCount>?</ns:skipCount>
<!--Optional:-->
<ns:extension>
<!--You may enter ANY elements at this point-->
</ns:extension>
</ns:query>
</soapenv:Body>
</soapenv:Envelope>
we are not getting the ObjectIds for that keyword insteadof ,we are getting the result as shown below.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<OTAuthentication xmlns="urn:api.ecm.opentext.com">
<AuthenticationToken>uuyC9vACAmDVpK1B8v6xqZekEsfUhkT6V6uEvlTutXKPK4yjLURA**</AuthenticationToken>
</OTAuthentication>
</S:Header>
<S:Body>
<ns2:queryResponse xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<ns2:objects>
<ns2:hasMoreItems>false</ns2:hasMoreItems>
</ns2:objects>
</ns2:queryResponse>
</S:Body>
</S:Envelope>
even we tried with Java sample code :
String select = "SELECT * FROM cmis:document WHERE CONTAINS('test')";
CmisObjectListType queryResult = discovery.query(
info.getRepositoryId(),
select,
Boolean.FALSE,
Boolean.FALSE,
null,
null,
BigInteger.valueOf(3), // get maximal 3items
BigInteger.valueOf(0), // skip 0 items
null);
// now get the Objects
List<CmisObjectType> list = queryResult.getObjects();
if (list.isEmpty()) {
System.out.println("The query returned no elements");
}
here the list is resulting Empty. and it's returning "The query returned no elements",
Kindly let us know is this is the method that we require to use to get the search results ?
or
how could we perform search operation in other way ?