static int getQueryFlags(Query query) {
        int flags = 0;

        flags |= query.properties().getBoolean(Model.ESTIMATE) ? 0x00000080 : 0;
        flags |= (query.getRanking().getFreshness() != null) ? 0x00002000 : 0;
        flags |= 0x00008000;
        flags |= query.getNoCache() ? 0x00010000 : 0;
        flags |= 0x00020000;                         // was PARALLEL
        flags |= query.properties().getBoolean(Ranking.RANKFEATURES,false) ? 0x00040000 : 0;

        return flags;
    }
A visitor data handler that performs a query in a content cluster with the
searchvisitor visitor plugin. It collects and merges hits (sorted
descending on rank), summaries (sorted on document id), and
groupings. The resulting data can be fetched when the query has
completed.

@author Ulf Carlin
container-search/src/main/java/com/yahoo/vespa/streamingvisitors/StreamingVisitor.java