Search with metadata tables