FirteX-高性能全文索引和检索平台API Documentation |
#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 |
|
|
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
从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>
|
|
|
|
|
|
判断两个SchemaItem是否相等,不比较m_id成员
|
|
|
将Schema Item信息写入XML文件
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex