CLucene - a full-featured, c++ search engine
API Documentation
00001 /*------------------------------------------------------------------------------ 00002 * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team 00003 * 00004 * Distributable under the terms of either the Apache License (Version 2.0) or 00005 * the GNU Lesser General Public License, as specified in the COPYING file. 00006 ------------------------------------------------------------------------------*/ 00007 #ifndef _lucene_analysis_standard_StandardAnalyzer 00008 #define _lucene_analysis_standard_StandardAnalyzer 00009 00010 00011 //#include "CLucene/util/VoidMap.h" 00012 CL_CLASS_DEF(util,Reader) 00013 #include "CLucene/analysis/AnalysisHeader.h" 00014 #include "CLucene/util/VoidMapSetDefinitions.h" 00015 //#include "CLucene/analysis/Analyzers.h" 00016 //#include "StandardFilter.h" 00017 //#include "StandardTokenizer.h" 00018 00019 00020 CL_NS_DEF2(analysis,standard) 00021 00022 00027 class CLUCENE_EXPORT StandardAnalyzer : public Analyzer 00028 { 00029 private: 00030 CLTCSetList* stopSet; 00031 public: 00033 StandardAnalyzer(); 00034 00036 StandardAnalyzer( const TCHAR** stopWords); 00037 00041 StandardAnalyzer(const char* stopwordsFile, const char* enc = NULL); 00042 00046 StandardAnalyzer(CL_NS(util)::Reader* stopwordsReader, const bool _bDeleteReader = false); 00047 00048 ~StandardAnalyzer(); 00049 00054 TokenStream* tokenStream(const TCHAR* fieldName, CL_NS(util)::Reader* reader); 00055 }; 00056 CL_NS_END2 00057 #endif