blob: 3c26a673348f3e11ca4d44e048bdad965871bb3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "doctypename.h"
#include <vespa/searchlib/engine/request.h>
#include <vespa/document/datatype/documenttype.h>
namespace proton {
DocTypeName::DocTypeName(const search::engine::Request &request) noexcept
: _name(request.propertiesMap.matchProperties().lookup("documentdb", "searchdoctype").get(""))
{}
DocTypeName::DocTypeName(const document::DocumentType &docType) noexcept
: _name(docType.getName())
{}
}
|