Hi Greet, Thanks for your suggestion. Can you please elobrate your solution with sample?
Search will be done on two xml documents having different namespace Element range index is created for <name> element in Product.xml . Not created for Group.xml. Regards, Mano ________________________________ From: Geert Josten <[email protected]> To: General MarkLogic Developer Discussion <[email protected]> Sent: Mon, 28 February, 2011 6:56:09 PM Subject: Re: [MarkLogic Dev General] cts:query? Hi Mano, Just call cts:element-value-match twice and don’t use the query parameter in this case. This query would have to apply to the same fragment (e.g. document in your case), and that does not apply here.. Kind regards, Geert Van:[email protected] [mailto:[email protected]] Namens mano m Verzonden: maandag 28 februari 2011 14:21 Aan: [email protected] Onderwerp: [MarkLogic Dev General] cts:query? Hi My xmls will be in the format given below. I am searching for the Name field Product.xml(multiple xml in same format stored in Ml server) <item> <id>10202</id> <Name>Herbal cream</Name> <group> <id>i1</id> <description> cream product</description> </group> <method> <id>md128</id> <description>herbal</description> </method> <groupdesc>cream product</groupdesc> (:Indexed based on this group element:) <item> Group.xml <Group> <category id ="A"> <Name>Herbal cream</Name> </category> <category id ="B"> … </category> … </Group> I am using cts:element-value-match() query to search in <Name> element in Product.xml (created element range index for <Name> field) .Simultaneously I need to verify whether the same name is present in Group.xml another xml. Please suggest which cts:query() I need to used to check this condition along with cts:element-value-match() Let $query :=??? return cts:element-value-match(xs:Qname(“Name”), “Herbal cream”,() , $query) Thanks in advance Regards, Mano
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
