Hi, Gnana: The REST API supports all search options including additional query.
How are you using the options? Do you persist them and then name them on a subsequent request or send them in as part of a combined query? If you add the <search:debug>true</search:debug> flag to your options, that should show you the query that's being executed. By the way, in MarkLogic 7, a structured query should be able to execute the same query in the search:* vocabulary. Hoping that helps, Erik Hennum ________________________________ From: [email protected] [[email protected]] on behalf of [email protected] [[email protected]] Sent: Thursday, April 23, 2015 6:15 AM To: [email protected] Subject: Re: [MarkLogic Dev General] Additional Query in Rest Hi I am trying to search for documents with few constraints (indexes created). I am having 1000’s of documents in my system which are as per my search criteria. Now, I want to have an additional constraint which should return docs with a specified element in them (hmhGuid). Note: this is working as expected when I run it in QC. It’s not working only in REST services. I also tried using other queries to test in additional query but none of them are adding up the constraints. Not sure whether there is a bug in REST for additional query. Regards, Gnana(GP) From: Bodireddy, Gnanaprakash (Cognizant) Sent: 23 April 2015 14:02 To: [email protected] Subject: Additional Query in Rest Hi I am facing an issue with additional-query in REST Search options. I am having search options as below. I am expecting the results only with element hmhGuid. <search:options xmlns:search="http://marklogic.com/appservices/search"> <search:quality-weight>0</search:quality-weight> <search:search-option>unfiltered</search:search-option> <search:additional-query>{cts:element-query(xs:QName("hmhGuid"), cts:and-query(()))}</search:additional-query> …. Search options are returning results as expected in QC but not through REST services. Additional query won’t work in REST? Regards, Gnanaprakash Bodireddy Sr. Associate – Projects, Dublin Ireland Mob: +353 87 964 9549 Desk: +353 1 650 0369 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
