Hi,
After we migrated to xplore from Fast we are experiencing full text search troubles. The piece of java code for full text search which was working perfectly alright with Fast is now bringing back zero result. So then I tried a sample full text search code from documentum developer's guide but it is also not working. When we tried the DQL it uses on the webtop then it seems to fetch results. There is no exception and error in the log. The sample code is something like this: -
publicString[] searchDocument(String searchText) throws CusotmException{ String[] docIds =null; List documentObjectIds =new ArrayList();
DomainManager domainManager = DomainManager.getInstance();
String docbaseUserId = domainManager.getDocBaseUserId();
String docbasePassword = domainManager.getDocBasePassword();
this.session = obtainSession(docbaseUserId, docbasePassword);
StringBuffer query =new StringBuffer(); query.append("select r_object_id from dm_document "); query.append("SEARCH DOCUMENT contains '"); query.append(searchText);
query.append("' WHERE (a_is_hidden = FALSE)"); System.out.println(query.toString()); IDfClientX clientx =new DfClientX(); IDfQuery queryObject = clientx.getQuery();
queryObject.setDQL(query.toString());
IDfCollection coll;
IDfId idObj =null;
try {coll = queryObject.execute(
this.session, IDfQuery.DF_READ_QUERY );
int i = 0;
while (coll.next()){
idObj = coll.getId("r_object_id"); documentObjectIds.add(idObj.getId());
System.out.println(i + " ID: " + idObj.getId()); i++;
}
}
catch (DfException dfe) {
try {
this.session.disconnect();}
catch (DfException dfe1) {
throw new CustomException(dfe1, "Failed to disconnect session");}
throw new CustomException(dfe, "Failed to get objects for the text criteria");}
try {
this.session.disconnect();}
catch (DfException dfe1) {
throw new CustomException(dfe1, "Failed to end session");}
docIds =
new String[documentObjectIds.size()];
return (String[]) documentObjectIds.toArray(docIds);
}
Does anybody know anything about this?
Does anybody know anything about this?