api: merged Search & SearchWithAttr into Search()