Base data for analysis and reporting will typically reside in one or more data packages, such as the standard Package (library.core.PackageType) node type.
To be accessible, data packages should index their contents as part of the derivation of the package node. This means that the nodes in the package are accessible as the targets of a member type on the package. The standard Package node type creates two sorts of index:
- Using the member type All, it indexes all the nodes in the package.
- It examines the tags defined on the nodes in the package, and indexes nodes by tag. For example, all the nodes with the Person tag will be available from the package using Person as the member type. This can be used to extract all data of one data type from a package containing multiple data types.
If you are writing your own data packages, use the Script Application method application.indexAll() to maintain an index.