private byte getFlagsFeature() {
        byte FLAGS_NORANK = 0x01;
        byte FLAGS_SPECIALTOKEN = 0x02;
        byte FLAGS_NOPOSITIONDATA = 0x04;
        byte FLAGS_ISFILTER = 0x08;
        byte FLAGS_PREFIX_MATCH = 0x10;

        byte ret = 0;
        if (!isRanked()) {
            ret |= FLAGS_NORANK;
        }
        if (isFromSpecialToken()) {
            ret |= FLAGS_SPECIALTOKEN;
        }
        if (!usePositionData()) {
            ret |= FLAGS_NOPOSITIONDATA;
        }
        if (isFilter()) {
            ret |= FLAGS_ISFILTER;
        }
        if (hasPrefixMatchSemantics()) {
            ret |= FLAGS_PREFIX_MATCH;
        }
        return ret;
    }
Returns an integer that contains all feature flags for this item.

@return the feature flags
container-search/src/main/java/com/yahoo/prelude/query/Item.java