Its not highly efficient but since maps are internally hash-maps there is no 
wildcard indexing on them.
You have to manually iterate the keys.
This or something like it (by memory) should work

(map:keys( $map ) ! fn:contains(.,"*wildcard")) = fn:true()





-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
[email protected]
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com<http://www.marklogic.com/>


From: [email protected] 
[mailto:[email protected]] On Behalf Of Steiner, David J. 
(LNG-DAY)
Sent: Friday, August 02, 2013 9:34 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] finding a set of keys in map

Is there a way to find a group of map entries by "wildcarding" a key?

Ideally, I'd like to say: map:contains($map, "*value-to-find") and get back 
"true" if any of my keys contain "value-to-find".

Thanks,
David
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to