CLucene - a full-featured, c++ search engine
API Documentation
#include <Analyzers.h>
Static Public Member Functions | |
static CLTCSetList * | getWordSet (const char *wordfilePath, const char *enc=NULL, CLTCSetList *stopTable=NULL) |
Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). | |
static CLTCSetList * | getWordSet (lucene::util::Reader *reader, CLTCSetList *stopTable=NULL, const bool bDeleteReader=false) |
Reads lines from a Reader and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). |
static CLTCSetList* lucene::analysis::WordlistLoader::getWordSet | ( | const char * | wordfilePath, | |
const char * | enc = NULL , |
|||
CLTCSetList * | stopTable = NULL | |||
) | [static] |
Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace).
Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
wordfile | File containing the wordlist |
static CLTCSetList* lucene::analysis::WordlistLoader::getWordSet | ( | lucene::util::Reader * | reader, | |
CLTCSetList * | stopTable = NULL , |
|||
const bool | bDeleteReader = false | |||
) | [static] |
Reads lines from a Reader and adds every line as an entry to a HashSet (omitting leading and trailing whitespace).
Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
reader | Reader containing the wordlist |