FirteX-高性能全文索引和检索平台API Documentation |
#include <Collection.h>
继承图,类firtex::collection::CCollection

公有成员 | |
| CCollection (void) | |
| CCollection (CIndexWriter *pIndexWriter) | |
| virtual | ~CCollection (void) |
| void | attachWriter (CIndexWriter *pWriter) |
| CIndexWriter * | detachWriter () |
| void | setTerminate (bool bTerminate=true) |
| bool | isTerminate () |
| void | setModifiedDate (const tchar *field=_T("modified"), bool bStore=true, bool bIndex=true) |
| bool | isIndexModifiedDate () |
| schemaid_t | getModifiedDateSchemaId () |
| CIndexParameter * | getIndexParameter () |
| virtual tstring | getCategory () |
| virtual tstring | getIdentifier () |
| bool | scan () |
| virtual bool | addFile (const tchar *filename) |
| virtual void | close () |
静态公有属性 | |
| const tstring | category |
| const tstring | identifier |
保护成员 | |
| virtual bool | scanInternal ()=0 |
保护属性 | |
| CIndexWriter * | m_pIndexWriter |
| CIndexParameter * | m_pIndexParameter |
| bool | m_bTerminate |
| tstring | m_identifier |
| schemaid_t | m_modifiedDateSchemaId |
|
|
|
|
|
构造函数
|
|
|
|
|
|
添加单个文件进行索引 被firtex::collection::CDirCollection及firtex::collection::CFileListCollection重载。 |
|
|
关联一个Index Writer,如果已经关联则自动销毁已有的Writer
|
|
|
关闭Collection,释放资源 |
|
|
撤销Collection关联的Index Writer
|
|
|
获取parser的所属分类,对于parser总是返回"parser" |
|
|
返回parser的标识 |
|
|
获取Index Parameter
|
|
|
|
|
|
判断是否索引文件时间 |
|
|
判断是否设置终止标志
|
|
|
扫描处理文档集 |
|
|
扫描处理文档集,子类实现,一般从文档集中抽取出单个文档,交给CIndexWriter对象处理 在firtex::collection::CDirCollection、firtex::collection::CFileListCollection、firtex::collection::CFirteXCollection及firtex::collection::CTrecCollection内被实现。 |
|
||||||||||||||||
|
设置索引文件时间,如果
|
|
|
设置终止标志,在多线程环境下可以优雅地终止索引
|
|
|
|
|
|
被firtex::collection::CDirCollection、firtex::collection::CFileListCollection、firtex::collection::CFirteXCollection及firtex::collection::CTrecCollection重载。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex