Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> iFS search via java api (FRQ + doc name) does not return versioned documents
In my own java application i am using the iFS java api to search for
documents in iFS. Everytime i set the folder and a name as criteria for the
search i only get non-versioned documents as result.
code snippet:
SearchClassSpecification scs = new SearchClassSpecification(); scs.addSearchClass(Document.CLASS_NAME); FolderRestrictQualification frq = new FolderRestrictQualification(); FolderPathResolver fpr = new FolderPathResolver(ifsSession);
fpr.setRootFolder(); fpr.setRelativePath("home"); frq.setStartFolder(fpr.getCurrentDirectory());AttributeSearchSpecification ass = new AttributeSearchSpecification(); ass.setSearchClassSpecification(scs);
aq.setAttribute(Document.NAME_ATTRIBUTE); aq.setOperatorType(AttributeQualification.LIKE); aq.setValue("%.doc"); aq.setCaseIgnored(true);
adding and changing to
// In case of versioned documents, families are
// foldered. Not the documents thmeselves.
// This takes care of that situation.
frq.setSearchClassname(PublicObject.CLASS_NAME);
scs.addSearchClass(PublicObject.CLASS_NAME);
jq.setLeftAttribute(PublicObject.CLASS_NAME, PublicObject.RESOLVEDPUBLICOBJECT_ATTRIBUTE); jq.setRightAttribute(Document.CLASS_NAME, null); SearchClause searchClause = new SearchClause(frq, jq, SearchClause.AND); searchClause = new SearchClause(searchClause, aq, SearchClause.AND);
returns also versioned documents, but only the latest versions. How do i get all versions for this case?
I don't get any answers in the OTN forum so please help me.
thanks
Michael Krumpholz
Received on Thu May 23 2002 - 04:06:50 CDT