>> And Query console does not support execution of REST API calls Actually, you CAN call the REST API through Query Console. POST example follows:
xquery version "1.0-ml"; declare namespace html = "http://www.w3.org/1999/xhtml"; let $doc := document {<payload> <my-payload/> </payload> } return xdmp:http-post("http://localhost:8003/v1/resources/myresource?rs:searchText=MarkLogic", <options xmlns="xdmp:http"> <authentication> <username>user</username> <password>password</password> </authentication> <headers> <content-type>application/xml</content-type> </headers> </options>, text{xdmp:quote($doc)} ) Hope this helps, Pete From: [email protected] [mailto:[email protected]] On Behalf Of Ganesh Vaideeswaran Sent: Thursday, February 07, 2013 11:48 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Search string and Search Query Sini, You cannot replay the app builder URL in QC. We send a HTTP POST with structured query (formed by JS) being the payload in the POST body. So, you cannot simply replay the app builder URL and replay it via a tool such as cURL. And Query console does not support execution of REST API calls. However, if you know what your query is (structured or unstructured), you can use cURL to test the query via REST APIs. Ganesh Vaideeswaran Director of Engineering, Application Services MarkLogic Corporation [email protected]<mailto:[email protected]> Phone: +1 650 655 2398 www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. From: [email protected] [mailto:[email protected]] On Behalf Of sini narayanan Sent: Thursday, February 07, 2013 6:42 AM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Search string and Search Query Hi All, I have the app bilder URL query string as http://localhost:8017/?q=&f=services*_*Amex How do I replay this query to produce the same results from query console. Please advice. Thanks, Sini
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
