資源描述:
《dfc search in depth》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在行業(yè)資料-天天文庫。
1、DFCSearchInDepthThisarticleexploresDocumentumsearchfeatureswithaheavyfocusontheJavaDFCAPIsrelatedtosearch.IntroductionThisarticleexploresDocumentumsearchfeatureswithaheavyfocusontheJavaDFCAPIsrelatedtosearch.Documentumproductmanualsareinvaluableresourcesincoming
2、tounderstandtheseconcepts,butinmanycasestheyaremissingimportantdetails–detailsthatyouwouldotherwisehavetolearnviaprototypingandtrialanderror.InthisarticleI’llattempttocoverthesemissingdetailswhileprovidingafocusedoverviewofDFCsearchandqueryfeatures.TheSimpleQuer
3、yAPIDFC’ssimplequeryAPIallowsyoutoexecutequeriesexpressedasDQLstrings.Here’sanexample:publicIDfCollectiongetLargeDocuments(IDfSessionsession)throwsDfException{IDfQueryquery=newDfClientX().getQuery();query.setDQL("SELECT*FROMdm_document"+"WHEREr_full_content_size
4、>1000000");returnquery.execute(session,IDfQuery.DF_READ_QUERY);}Here,wecreateanIDfQueryinstanceusingthefactorymethodIDfClientX.getQuery().ThenwepopulatethequerywithavalidDQLstringandcallthequery’sexecute()methodwithanIDfSessioninstance.DFCdocumentationreferstoth
5、isas“thesimplequeryAPI.”TherearesomesignificantlimitationstothisAPI:·Onlyqueriesonasinglerepositoryarepermitted.ThetargetofthequeryisimplicitlythedefaultrepositoryoftheprovidedIDfSession.·OnlyDocumentumrepositoriescanbequeried.Youcannotqueryanexternal,federated(
6、ECIS)source.·Thereisnosupportforprogrammaticallybuildingqueries;onlyexplicitDQLquerystringsaresupported.·Executingaqueryisalwaysathread-blockingoperation;thatis,thethreadissuingtheAPIcallblocksuntilthequeryresultsarereturned.ThesearchserviceAPI,includedinDocumen
7、tum5.3SP1andlaterreleases,resolvestheselimitations.ThenextsectioncoversthisextensiveAPIindetail.TheSearchServiceAPIThesearchserviceAPIisrootedattheIDfSearchServiceinterface:Figure1:TheIDfSearchServiceinterface.Toobtainaninstanceofthisclass,useIDfClient.newSearch
8、Service():IDfSearchServicesearchService=newDfClientX().getLocalClient().newSearchService(mgr,repo);ThefirstparameterofthenewSearchService()factorymethodisanIDfSession