FirteX-高性能全文索引和检索平台API Documentation |
#include <Sort.h>
公有成员 | |
| CSort (void) | |
| CSort (const tchar *field, bool reverse) | |
| CSort (const tchar **field, int32_t numFields) | |
| CSort (CSortField *pSortField) | |
| CSort (CSortFields *pSortFields) | |
| ~CSort (void) | |
| void | setSortField (const tchar *field, bool bReverse) |
| void | setSortField (const tchar **field, int32_t numFields) |
| void | setSortField (CSortField *pSortField) |
| void | setSortField (CSortFields *pSortFields) |
| void | clear () |
| bool | lessThan (CScoreDoc *pDoc1, CScoreDoc *pDoc2) |
| void | getComparators (CIndexReader *pReader, CSortFieldCache *pFieldCache) |
静态公有属性 | |
| CSort * | RELEVANCE |
| CSort * | DOCORDER |
| int32_t | NUMSORTS |
静态保护成员 | |
| void | init () |
| void | uninit () |
保护属性 | |
| CSortFields * | m_pSortFields |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
清除所有排序信息 |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
设置多个需要排序的字段信息,位置越靠前的字段,排序时优先级越高
|
|
|
设置需要排序的字段信息
|
|
||||||||||||
|
设置需要排序的字段信息,没有设置的信息将使用默认值
|
|
||||||||||||
|
设置需要排序的字段信息,没有设置的信息将使用默认值
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex