aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/queryeval/idiversifier.h
blob: 495827846172e124b756dccf76cf1f7440ab74bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <cstdint>

namespace search::queryeval {

struct IDiversifier {
    virtual ~IDiversifier() {}
    /**
     * Will tell if this document should be kept, and update state for further filtering.
     */
    virtual bool accepted(uint32_t docId) = 0;
};
}