Node filter logic for Advanced Search