11 #ifndef _STRUS_ANALYZER_QUERY_ELEMENT_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_QUERY_ELEMENT_VIEW_HPP_INCLUDED
29 :m_type(o.m_type),m_field(o.m_field),m_tokenizer(o.m_tokenizer),m_normalizer(o.m_normalizer),m_priority(o.m_priority){}
37 QueryElementView(
const std::string& type_,
const std::string& field_,
const FunctionView& tokenizer_,
const std::vector<FunctionView>& normalizer_,
int priority_)
38 :m_type(type_),m_field(field_),m_tokenizer(tokenizer_),m_normalizer(normalizer_),m_priority(priority_){}
41 const std::string&
type()
const {
return m_type;}
43 const std::string&
field()
const {
return m_field;}
47 const std::vector<FunctionView>&
normalizer()
const {
return m_normalizer;}
55 std::vector<FunctionView> m_normalizer;
const std::vector< FunctionView > & normalizer() const
Get the list of normalizers.
Definition: queryElementView.hpp:47
const std::string & type() const
Get the type.
Definition: queryElementView.hpp:41
QueryElementView()
Default constructor.
Definition: queryElementView.hpp:26
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Definition: functionView.hpp:29
Structure describing the internal representation of a feature in the document analyzer.
Definition: queryElementView.hpp:22
const std::string & field() const
Get the name of the query field.
Definition: queryElementView.hpp:43
QueryElementView(const std::string &type_, const std::string &field_, const FunctionView &tokenizer_, const std::vector< FunctionView > &normalizer_, int priority_)
Constructor.
Definition: queryElementView.hpp:37
int priority() const
Get the priority of the feature.
Definition: queryElementView.hpp:49
const FunctionView & tokenizer() const
Get the tokenizer.
Definition: queryElementView.hpp:45
QueryElementView(const QueryElementView &o)
Copy constructor.
Definition: queryElementView.hpp:28