Any update on this. From: MEHROTRA Ankur Sent: Thursday, May 25, 2017 5:36 PM To: '[email protected]' Cc: GUPTA Pavan; SHARMA Archana Subject: Clarification :- Binary Document Search
Hi Team, I have gone through the 'https://docs.marklogic.com/... to set up the pipeline to make the binary document searchable. I can observe that .xml and .xhtml are being generated out of ingested file (for instance .doc/.docx/.pdf). When I tried searching using Java Client API search query, I got the results from generated xml file rather than getting the results from ingested file which in turn returned the uri of generated xml file (in response) but I need to point to the main document file uri as I need to show this on screen. How I can achieve this. We have used below code to get the converted document uri (for example .xml file) but I need to ingested documents uri. DatabaseClient client = DatabaseClientFactory.newClient(Config.host, Config.port, Config.user, Config.password, Config.authType); // create a manager for searching QueryManager queryMgr = client.newQueryManager(); StringQueryDefinition query = queryMgr.newStringDefinition(); query.setCriteria("text"); SearchHandle resultsHandle = new SearchHandle(); queryMgr.search(query, resultsHandle); MatchDocumentSummary[] results = resultsHandle.getMatchResults(); for (MatchDocumentSummary result: results) { System.out.println(result.getUri()); } Thanks and regards, Ankur Mehrotra
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
