See also Data Views in Using the SDK for a more elaborate discussion on how to use filters and data views.