add def_type method to Sunspot.search block