How can I execute DFC XQuery in .NET

Options
hardikshahREI
edited September 20, 2016 in Documentum #1

Hi All,

I found below code to execute XQuery in DFC. But I don't find any DFC Dll for .net which I can refer and execute code. I know that I can use DFS for this but wanted to use DFC.

IDfClientX clientx = new DfClientX();

IDfXQuery xquery = clientx.getXQuery();

IDfXQueryTargets fttarget = clientx.getXQueryTargets(IDfXQueryTargets.DF_FULLTEXT);

xquery.setXQueryString("unordered(for $i in collection(‘/docbase1/DSS/Data’) where ( ( $i/dmftdoc/dmftmetadata/*/r_creation_date[. >= ‘ 2008-12-20T08:00:00’] ) and ...");

xquery.setTimeout(10000);

xquery.setBatchSize(200);

xquery.setSaveExecutionPlan(true);

xquery.setCaching(true);

xquery.execute(session, fttarget);

InputStream results = xquery.getInputStream(session);