Me again.
In addition I've read that sub-fragments can negatively affect performance (the Permission fragment would be a descendant in a SecurityObject fragment). Is this true? gary From: [email protected] [mailto:[email protected]] On Behalf Of Gary Larsen Sent: Tuesday, July 19, 2011 12:36 PM To: 'General MarkLogic Developer Discussion' Subject: [MarkLogic Dev General] Question on fields I need to filter on the data structure below using a combination of both the <name> and <access> values. <permissions> <Permission> <access>deny</access> <name>execute</name> </Permission> <Permission> <access>grant</access> <name>traverse</name> </Permission> </permissions> It seems one way to accomplish this is to create a fragment root on the Permission element. (This would create very large number of fragments.) I also thought that a field defined on the Permission element (the only include, no excludes) would work - as long as the descendant values were always appended in order. For example: cts:field-word-query('permissionField', 'denyexecute') Can I rely on that? Are there other possible solutions? Thanks, gary
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
