Don't forget that you can use xdmp:http-get() and other http client functions to test queries via Query Console.
See documentation on using that function (you'll need to use options to pass in authentication) here: http://docs.marklogic.com/xdmp:http-get?q=xdmp:http-get You can also just hit the search endpoint directly with a browser to test the query. Assuming you're going against port 8017 on localhost, it would look like (although there might be other parameters to pass in, Ganesh can provide more information if so): http://localhost:8017/v1/search?q=&f=services*_*Amex<http://localhost:8017/?q=&f=services*_*Amex> Here's another debugging tip: the built application is just a thin layer on top of a REST Client API instance. You can set a debug flag by sending a curl command to the properties endpoint: http://docs.marklogic.com/REST/PUT/v1/config/properties With the debug flag on, all queries and all request parameters are logged to the server error log. Just don't forget to turn debug mode off when you're done, because it does impose a performance penalty. ________________________________ From: [email protected] [[email protected]] on behalf of Ganesh Vaideeswaran [[email protected]] Sent: Thursday, February 07, 2013 8: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
