private static void updateFilterTerms(Item root) {
        Deque<Item> stack = new ArrayDeque<>();
        stack.push(root);
        while (!stack.isEmpty()) {
            Item item = stack.pop();
            if (item.isFilter())
                item.setRanked(false);
            if (item instanceof CompositeItem lst) {
                for (Iterator<Item> it = lst.getItemIterator(); it.hasNext();) {
                    stack.push(it.next());
                }
            }
        }
    }
Marks all filter terms in the given query tree as unranked.

@param root the root of the tree to update
container-search/src/main/java/com/yahoo/prelude/querytransform/RecallSearcher.java