Hi Gary,

This little gist shows how you could do it. I’m reluctant to share though, as 
it works against internal libraries, so no guarantee it will work after 
installing updates. Could be useful input for such an RFE, though:

http://github-search.demo.marklogic.com/detail/joemfb/structured-query-utils.xqy.json

Cheers,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Erik Hennum 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Friday, December 9, 2016 at 8:34 PM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] Parsing json version of search:search 
query in json using custom transform in sjs

Hi, Gary:

Unfortunately, there isn't any stable API like that at present.

Such an API would be a reasonable RFE.


Erik Hennum


________________________________
From: 
[email protected]<mailto:[email protected]>
 
[[email protected]<mailto:[email protected]>]
 on behalf of Gary Vidal 
[[email protected]<mailto:[email protected]>]
Sent: Friday, December 09, 2016 11:25 AM
To: [email protected]<mailto:[email protected]>
Subject: [MarkLogic Dev General] Parsing json version of search:search query in 
json using custom transform in sjs

All,

I am trying to figure out how to parse the query(in json format) so I can get 
the equivalent cts.query.  Is there an api call that will resolve json-query 
back to cts?

Regards

Gary
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to