Allow disabling of search in production mode using env var