Refactored apiv2 textsearch resource so it uses generic api_search function