blob: 0ebb635113e3daf348a99b1220defff69ddf55af (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "juniper_dfw_query_item.h"
#include "juniper_dfw_explicit_item_data.h"
#include <vespa/searchlib/parsequery/stackdumpiterator.h>
namespace search::docsummary {
vespalib::stringref
JuniperDFWQueryItem::get_index() const
{
return _si != nullptr ? _si->getIndexName() : _data->_index;
}
int
JuniperDFWQueryItem::get_weight() const
{
return _si != nullptr ? _si->GetWeight().percent() : _data->_weight;
}
juniper::ItemCreator
JuniperDFWQueryItem::get_creator() const
{
return _si != nullptr ? _si->getCreator() : juniper::ItemCreator::CREA_ORIG;
}
}
|