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 #if defined(_LUCENE_PRAGMA_ONCE) 00011 # pragma once 00012 #endif 00013 00014 #include "CLucene/util/VoidMap.h" 00015 #include "CLucene/util/Reader.h" 00016 #include "CLucene/analysis/AnalysisHeader.h" 00017 #include "CLucene/analysis/Analyzers.h" 00018 #include "StandardFilter.h" 00019 #include "StandardTokenizer.h" 00020 00021 00022 CL_NS_DEF2(analysis,standard) 00023 00024 00025 class StandardAnalyzer : public Analyzer 00026 { 00027 private: 00028 CL_NS(util)::CLSetList<const TCHAR*> stopSet; 00029 public: 00031 StandardAnalyzer(); 00032 00034 StandardAnalyzer( const TCHAR** stopWords); 00035 00036 ~StandardAnalyzer(); 00037 00038 00043 TokenStream* tokenStream(const TCHAR* fieldName, CL_NS(util)::Reader* reader) 00044 ; 00045 }; 00046 CL_NS_END2 00047 #endif