added type field on search