Hi Gary,


You could do distinct-values(collection()//*/name()), but that will get
pretty slow if your collection becomes larger than, let’s say, 1000 large
docs. If you would be satisfied with an estimate, you could pick 100 docs
out of the collection, or do some kind of cherry picking based on domain
knowledge, and do the distinct on those.



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *Gary Larsen
*Verzonden:* donderdag 15 augustus 2013 16:21
*Aan:* General MarkLogic Developer Discussion
*Onderwerp:* [MarkLogic Dev General] list of element name



Is there a way to get a list of element names that exist in a specific
collection?



Most of our content is generated by serializing Java beans so the schema is
not documented.




Thanks,

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

Reply via email to