Defines a program for analyzing a document, splitting it into normalized terms that can be fed to the strus IR engine.
More...
#include <contentStatisticsContextInterface.hpp>
Defines a program for analyzing a document, splitting it into normalized terms that can be fed to the strus IR engine.
virtual strus::ContentStatisticsContextInterface::~ContentStatisticsContextInterface |
( |
| ) |
|
|
inlinevirtual |
virtual int strus::ContentStatisticsContextInterface::nofDocuments |
( |
| ) |
const |
|
pure virtual |
Get the number of sample documents only.
- Returns
- the number of sample documents put
virtual void strus::ContentStatisticsContextInterface::putContent |
( |
const std::string & |
docid, |
|
|
const std::string & |
content, |
|
|
const analyzer::DocumentClass & |
doctype |
|
) |
| |
|
pure virtual |
Put content to collect statistics.
- Parameters
-
[in] | docid | document identifier as appearing in the result |
[in] | content | document content |
[in] | doctype | document class (schema ignored) if defined, otherwise guessed |
Do return the overall statistics of the sample documents.
- Returns
- the statistics structure
The documentation for this class was generated from the following file: