xapian-core  2.0.0
Public Member Functions | Public Attributes | List of all members
FieldInfo Struct Reference

Information about how to handle a field prefix in the query string. More...

#include <queryparser_internal.h>

+ Collaboration diagram for FieldInfo:

Public Member Functions

 FieldInfo (filter_type type_)
 
 FieldInfo (filter_type type_, std::string_view grouping_)
 
 FieldInfo (filter_type type_, Xapian::FieldProcessor *proc_, std::string_view grouping_={})
 
FieldInfoappend (std::string_view prefix)
 

Public Attributes

filter_type type
 The type of this field. More...
 
std::string grouping
 
std::vector< std::string > prefixes
 Field prefix strings. More...
 
Xapian::Internal::opt_intrusive_ptr< Xapian::FieldProcessorproc
 Field processor. Currently only one is supported. More...
 

Detailed Description

Information about how to handle a field prefix in the query string.

Definition at line 39 of file queryparser_internal.h.

Constructor & Destructor Documentation

◆ FieldInfo() [1/3]

FieldInfo::FieldInfo ( filter_type  type_)
inlineexplicit

Definition at line 52 of file queryparser_internal.h.

◆ FieldInfo() [2/3]

FieldInfo::FieldInfo ( filter_type  type_,
std::string_view  grouping_ 
)
inline

Definition at line 57 of file queryparser_internal.h.

◆ FieldInfo() [3/3]

FieldInfo::FieldInfo ( filter_type  type_,
Xapian::FieldProcessor proc_,
std::string_view  grouping_ = {} 
)
inline

Definition at line 62 of file queryparser_internal.h.

Member Function Documentation

◆ append()

FieldInfo& FieldInfo::append ( std::string_view  prefix)
inline

Definition at line 68 of file queryparser_internal.h.

References prefixes.

Member Data Documentation

◆ grouping

std::string FieldInfo::grouping

Definition at line 43 of file queryparser_internal.h.

Referenced by Term::get_grouping().

◆ prefixes

std::vector<std::string> FieldInfo::prefixes

Field prefix strings.

Definition at line 46 of file queryparser_internal.h.

Referenced by append(), and Xapian::QueryParser::Internal::parse_query().

◆ proc

Field processor. Currently only one is supported.

Definition at line 49 of file queryparser_internal.h.

◆ type

filter_type FieldInfo::type

The type of this field.

Definition at line 41 of file queryparser_internal.h.

Referenced by Xapian::QueryParser::Internal::parse_query().


The documentation for this struct was generated from the following file: