Cherrypick "Expand polymorphism for schema type filters in AppSearch"

Bug: 336277840
Bug: 337918394
Test: Presubmit
Change-Id: Ifa5a771ef13f213358b59c9185e3b53d7e38aa32
13 files changed