public function filterMarking($node)
    {
        $callback = $this->getFilterFunction();
        if ($callback && !call_user_func($callback, $node)) {
            return false;
        }

        if ($this->search) {
            return isset($this->searchIds[$node->ID]) && $this->searchIds[$node->ID] ? true : false;
        }

        return true;
    }