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

API Documentation


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

firtex::document::CSchemaItem类参考

#include <DocumentSchema.h>

所有成员的列表。

公有成员

 CSchemaItem ()
 CSchemaItem (fieldid_t id, const tchar *name, FieldType ft, Store_ store, Index_ index, TermVector_ tv, float fBoost=1.0)
 CSchemaItem (const CSchemaItem &src)
 ~CSchemaItem ()
fieldid_t getId ()
const tchar * getName ()
FieldType getFieldType ()
Store_ getStore ()
Index_ getIndex ()
TermVector_ getTermVector ()
float getBoost ()
bool load (CXMLElement *pXML)
void save (CXMLElement *pXML)
bool operator== (const CSchemaItem &right) const
bool operator!= (const CSchemaItem &right) const

保护属性

fieldid_t m_id
CFXString m_name
FieldType m_fieldType
Store_ m_store
Index_ m_index
TermVector_ m_termVector
float m_fBoost

友元

class CDocumentSchema


构造及析构函数文档

firtex::document::CSchemaItem::CSchemaItem  ) 
 

firtex::document::CSchemaItem::CSchemaItem fieldid_t  id,
const tchar *  name,
FieldType  ft,
Store_  store,
Index_  index,
TermVector_  tv,
float  fBoost = 1.0
 

firtex::document::CSchemaItem::CSchemaItem const CSchemaItem src  ) 
 

firtex::document::CSchemaItem::~CSchemaItem  ) 
 


成员函数文档

float firtex::document::CSchemaItem::getBoost  )  [inline]
 

FieldType firtex::document::CSchemaItem::getFieldType  )  [inline]
 

fieldid_t firtex::document::CSchemaItem::getId  )  [inline]
 

Index_ firtex::document::CSchemaItem::getIndex  )  [inline]
 

const tchar* firtex::document::CSchemaItem::getName  )  [inline]
 

Store_ firtex::document::CSchemaItem::getStore  )  [inline]
 

TermVector_ firtex::document::CSchemaItem::getTermVector  )  [inline]
 

bool firtex::document::CSchemaItem::load CXMLElement pXML  ) 
 

从XML文件中装入Schema 信息 Example: <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>

参数:
pXML schema item的XML 元素
返回:
true:success false:failed.

bool firtex::document::CSchemaItem::operator!= const CSchemaItem right  )  const [inline]
 

bool firtex::document::CSchemaItem::operator== const CSchemaItem right  )  const [inline]
 

判断两个SchemaItem是否相等,不比较m_id成员

返回:
相等返回true,否则false

void firtex::document::CSchemaItem::save CXMLElement pXML  ) 
 

将Schema Item信息写入XML文件

参数:
pXML schema item的XML 元素


友元及相关函数文档

friend class CDocumentSchema [friend]
 


成员数据文档

float firtex::document::CSchemaItem::m_fBoost [protected]
 

FieldType firtex::document::CSchemaItem::m_fieldType [protected]
 

fieldid_t firtex::document::CSchemaItem::m_id [protected]
 

Index_ firtex::document::CSchemaItem::m_index [protected]
 

CFXString firtex::document::CSchemaItem::m_name [protected]
 

Store_ firtex::document::CSchemaItem::m_store [protected]
 

TermVector_ firtex::document::CSchemaItem::m_termVector [protected]
 


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

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