@Override
    public boolean equals(Object object) {
        if ( ! super.equals(object)) return false;

        BoolItem other = (BoolItem) object; // Ensured by superclass
        return this.value == other.value;
    }
Word items uses a empty heading instead of "WORD "
container-search/src/main/java/com/yahoo/prelude/query/BoolItem.java