aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/engine/searchreply.cpp
blob: c24c2e448af19fae3b6ff8ad7693a9df5351cea9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "searchreply.h"

namespace search::engine {

SearchReply::SearchReply()
    : _distributionKey(0),
      totalHitCount(0),
      sortIndex(),
      sortData(),
      groupResult(),
      coverage(),
      hits(),
      match_features(),
      request(),
      my_issues()
{ }

SearchReply::~SearchReply() = default;

SearchReply::SearchReply(const SearchReply &rhs)
    : _distributionKey (rhs._distributionKey),
      totalHitCount    (rhs.totalHitCount),
      sortIndex        (rhs.sortIndex),
      sortData         (rhs.sortData),
      groupResult      (rhs.groupResult),
      coverage         (rhs.coverage),
      hits             (rhs.hits),
      match_features   (rhs.match_features),
      request(),       // NB not copied
      my_issues()      // NB not copied
{ }

}