Metadata filtering in search model