Defines the context for analyzing queries for the strus IR engine.
More...
#include <queryAnalyzerContextInterface.hpp>
|
virtual | ~QueryAnalyzerContextInterface () |
| Destructor. More...
|
|
virtual void | putField (int fieldno, const std::string &fieldtype, const std::string &content)=0 |
| Feed the analyzer with the a field of the query. More...
|
|
virtual void | groupElements (int groupid, const std::vector< int > &fieldnoList, const GroupBy &groupBy, bool groupSingle)=0 |
| Group elements of the query together. More...
|
|
virtual
analyzer::QueryTermExpression | analyze ()=0 |
| Analyze the term expression feeded with putField(unsigned int,const std::string&,const std::string&) and groupElements(const std::string&,const std::vector<unsigned int>&,const GroupBy&) More...
|
|
Defines the context for analyzing queries for the strus IR engine.
Descriptor that tells how to group elements together.
Enumerator |
---|
GroupByPosition |
Elements with same position are grouped together.
|
GroupEvery |
Every element gets its own group.
|
GroupAll |
All elements are grouped together.
|
GroupUnique |
Single element grouped and the element must exist.
|
virtual strus::QueryAnalyzerContextInterface::~QueryAnalyzerContextInterface |
( |
| ) |
|
|
inlinevirtual |
Analyze the term expression feeded with putField(unsigned int,const std::string&,const std::string&) and groupElements(const std::string&,const std::vector<unsigned int>&,const GroupBy&)
- Returns
- the term expression structure
virtual void strus::QueryAnalyzerContextInterface::groupElements |
( |
int |
groupid, |
|
|
const std::vector< int > & |
fieldnoList, |
|
|
const GroupBy & |
groupBy, |
|
|
bool |
groupSingle |
|
) |
| |
|
pure virtual |
Group elements of the query together.
- Parameters
-
[in] | groupid | identifier of the grouping operation defined by the caller that gets into the resulting query as operator identifier of the query instructions |
[in] | fieldnolist | number of the fields to take as arguments |
[in] | groupBy | how to group elements together |
[in] | groupSingle | true, if this operator should also be applied on single elements, false, if the operator is not applied on single argument elements and the elements apear as they are |
- Note
- This method influences how a query is iterated on
virtual void strus::QueryAnalyzerContextInterface::putField |
( |
int |
fieldno, |
|
|
const std::string & |
fieldtype, |
|
|
const std::string & |
content |
|
) |
| |
|
pure virtual |
Feed the analyzer with the a field of the query.
- Parameters
-
[in] | fieldno | number of the field |
[in] | fieldtype | type of the field |
[in] | content | content of the field |
The documentation for this class was generated from the following file: