strusPython  0.14
Public Member Functions | Friends | List of all members
strus::QueryAnalyzeContext Class Reference

Query analyzer context for analysing a multipart query. More...

#include <bindingObjects.hpp>

Public Member Functions

 QueryAnalyzeContext (const QueryAnalyzeContext &o)
 Copy constructor. More...
 
 ~QueryAnalyzeContext ()
 Destructor. More...
 
void putField (unsigned int fieldNo, const String &fieldType, const String &fieldContent)
 Define a query field. More...
 
QueryTermVector analyze ()
 Processes the next field of the queue for fields to analyzer. Does the tokenization and normalization and creates some typed terms out of it according the definition of the field type given. More...
 

Friends

class QueryAnalyzer
 Constructor used by Context. More...
 

Detailed Description

Query analyzer context for analysing a multipart query.

Constructor & Destructor Documentation

strus::QueryAnalyzeContext::QueryAnalyzeContext ( const QueryAnalyzeContext o)

Copy constructor.

strus::QueryAnalyzeContext::~QueryAnalyzeContext ( )
inline

Destructor.

Member Function Documentation

QueryTermVector strus::QueryAnalyzeContext::analyze ( )

Processes the next field of the queue for fields to analyzer. Does the tokenization and normalization and creates some typed terms out of it according the definition of the field type given.

Returns
list of terms (query field analyzer result)
void strus::QueryAnalyzeContext::putField ( unsigned int  fieldNo,
const String &  fieldType,
const String &  fieldContent 
)

Define a query field.

Parameters
[in]fieldNoindex given to the field by the caller, to identify its results
[in]fieldTypename of the field type to use for analysis
[in]fieldContentcontent string of the query field to analyze

Friends And Related Function Documentation

friend class QueryAnalyzer
friend

Constructor used by Context.


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