FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

firtex::document::CDocumentSchema类参考

#include <DocumentSchema.h>

所有成员的列表。

公有成员

 CDocumentSchema (void)
 CDocumentSchema (const CDocumentSchema &src)
virtual ~CDocumentSchema (void)
fieldid_t addKeywordItem (const tchar *name, FieldType ft)
fieldid_t addUnIndexedItem (const tchar *name)
fieldid_t addTextItem (const tchar *name, FieldType ft, Store_ store=Store::NO, TermVector_ termVector=TermVector::NO)
fieldid_t addUnStoredItem (const tchar *name, FieldType ft, TermVector_ termVector=TermVector::NO)
fieldid_t addBinaryItem (const tchar *name, bool bCompress)
fieldid_t addItem (const CSchemaItem &item)
bool deleteItem (const tchar *name)
void addSchema (const CDocumentSchema &src)
int getCount () const
void startIterator ()
bool hasNext ()
CSchemaItemnext ()
CSchemaItemoperator[] (fieldid_t id)
CSchemaItemoperator[] (const tchar *name)
CDocumentSchemaoperator= (const CDocumentSchema &right)
CDocumentSchemaoperator+= (const CDocumentSchema &right)
void loadSchema (const tchar *schemaFile)
void saveSchema (const tchar *schemaFile)
void clear ()


构造及析构函数文档

firtex::document::CDocumentSchema::CDocumentSchema void   ) 
 

firtex::document::CDocumentSchema::CDocumentSchema const CDocumentSchema src  ) 
 

virtual firtex::document::CDocumentSchema::~CDocumentSchema void   )  [virtual]
 


成员函数文档

fieldid_t firtex::document::CDocumentSchema::addBinaryItem const tchar *  name,
bool  bCompress
 

fieldid_t firtex::document::CDocumentSchema::addItem const CSchemaItem item  ) 
 

fieldid_t firtex::document::CDocumentSchema::addKeywordItem const tchar *  name,
FieldType  ft
 

void firtex::document::CDocumentSchema::addSchema const CDocumentSchema src  ) 
 

fieldid_t firtex::document::CDocumentSchema::addTextItem const tchar *  name,
FieldType  ft,
Store_  store = Store::NO,
TermVector_  termVector = TermVector::NO
 

fieldid_t firtex::document::CDocumentSchema::addUnIndexedItem const tchar *  name  ) 
 

fieldid_t firtex::document::CDocumentSchema::addUnStoredItem const tchar *  name,
FieldType  ft,
TermVector_  termVector = TermVector::NO
 

void firtex::document::CDocumentSchema::clear  ) 
 

清空schema信息

bool firtex::document::CDocumentSchema::deleteItem const tchar *  name  ) 
 

int firtex::document::CDocumentSchema::getCount  )  const [inline]
 

bool firtex::document::CDocumentSchema::hasNext  )  [inline]
 

void firtex::document::CDocumentSchema::loadSchema const tchar *  schemaFile  ) 
 

装入schema文件

参数:
schemaFile 文件路径 schema file format: <documentschema> <schemaitem> <name>field name</name> <type>none/word/date/name/compary...</type> <store>yes/no/compress</store> <index>no/analyze/unanalyze</index> <termvector>no/sequence/freq/position</termvector> <boost>1.0</boost> </schemaitem> </documentschema>

CSchemaItem* firtex::document::CDocumentSchema::next  )  [inline]
 

CDocumentSchema & firtex::document::CDocumentSchema::operator+= const CDocumentSchema right  )  [inline]
 

CDocumentSchema & firtex::document::CDocumentSchema::operator= const CDocumentSchema right  )  [inline]
 

CSchemaItem * firtex::document::CDocumentSchema::operator[] const tchar *  name  )  [inline]
 

CSchemaItem * firtex::document::CDocumentSchema::operator[] fieldid_t  id  )  [inline]
 

void firtex::document::CDocumentSchema::saveSchema const tchar *  schemaFile  ) 
 

保存schema文件

参数:
schemaFile 文件路径

void firtex::document::CDocumentSchema::startIterator  )  [inline]
 


该类的文档由以下文件生成:

http://www.firtex.org http://www.sourceforge.net/projects/firtex