Ambika I am not much clear about your requirement. It seems you are not passing the search options to search:parse API. Please let me know the actual requirement with code snippet
Regards Abhishek Srivastav Systems Engineer Tata Consultancy Services Cell:- +91-9883389968 Mailto: [email protected] Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ From: ambika arumugam <[email protected]> To: General MarkLogic Developer Discussion <[email protected]> Date: 05/06/2011 10:10 AM Subject: [MarkLogic Dev General] Reg: Advanced search Sent by: [email protected] hi all, I am performing a search on elements as well attributes using search API. I am using constraints to do the element-attribute search. For the xml, <data value="777700021-001"/> <lang>English</lang> I am using, import module namespace search = "http://marklogic.com/appservices/search" at "/MarkLogic/appservices/search/search.xqy"; let $options := <options xmlns="http://marklogic.com/appservices/search"> <constraint name="prop"> <value> <element ns="" name="data"/> <attribute ns="" name="value"/> </value> </constraint> </options> let $h:=search:parse('"English" AND "prop:777700021-001"') return search:resolve($h, $options) For me the search for English should be made in all the element nodes where as prop:777700021-001should work with the constraint(On element-attribute value of data element with attribute value) If i try the same with the search:search it works search:search('prop:777700021-001', $options) But i need to perform the constraint search(for eleemnt-attribute values ) along with element-values. So i go for search:resolve(search:parse('"English" AND "prop:777700021-001"')) I am missing something to get this working. Regards Ambika _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
