Add type option to nodeSearch