add criterion to the api search