Added new API to get a summary for filter.
Improved the API with get_filter_summary_file for testing purposes.