Pick search method from environment variable