Add subtype filtering support to advanced search.