search_env_filtered for the nodes in correct environment