/usr/include/CLucene/analysis/standard/StandardAnalyzer.h is in libclucene-dev 0.9.21b-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
------------------------------------------------------------------------------*/
#ifndef _lucene_analysis_standard_StandardAnalyzer
#define _lucene_analysis_standard_StandardAnalyzer
#if defined(_LUCENE_PRAGMA_ONCE)
# pragma once
#endif
#include "CLucene/util/VoidMap.h"
#include "CLucene/util/Reader.h"
#include "CLucene/analysis/AnalysisHeader.h"
#include "CLucene/analysis/Analyzers.h"
#include "StandardFilter.h"
#include "StandardTokenizer.h"
CL_NS_DEF2(analysis,standard)
/** Represents a standard analyzer. */
class StandardAnalyzer : public Analyzer
{
private:
CL_NS(util)::CLSetList<const TCHAR*> stopSet;
public:
/** Builds an analyzer.*/
StandardAnalyzer();
/** Builds an analyzer with the given stop words. */
StandardAnalyzer( const TCHAR** stopWords);
~StandardAnalyzer();
/**
* Constructs a StandardTokenizer filtered by a
* StandardFilter, a LowerCaseFilter and a StopFilter.
*/
TokenStream* tokenStream(const TCHAR* fieldName, CL_NS(util)::Reader* reader)
;
};
CL_NS_END2
#endif
|