Lucene++ - a full-featured, c++ search engine
API Documentation

Loading...
Searching...
No Matches
PrefixFilter.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef PREFIXFILTER_H
8#define PREFIXFILTER_H
9
10#include "MultiTermQueryWrapperFilter.h"
11
12 namespace Lucene {
13
15 class LPPAPI PrefixFilter : public MultiTermQueryWrapperFilter {
16 public:
17 PrefixFilter(const TermPtr& prefix);
18 virtual ~PrefixFilter();
19
20 LUCENE_CLASS(PrefixFilter);
21
22 public:
23 TermPtr getPrefix();
24
25 virtual String toString();
26};
27
28}
29
30#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
MultiTermQueryWrapperFilter.h
Lucene::MultiTermQueryWrapperFilter
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition MultiTermQueryWrapperFilter.h:22
Lucene::PrefixFilter::PrefixFilter
PrefixFilter(const TermPtr &prefix)
Lucene::PrefixFilter::toString
virtual String toString()
Returns a string representation of the object.
Lucene::PrefixFilter::~PrefixFilter
virtual ~PrefixFilter()
Lucene::PrefixFilter::getPrefix
TermPtr getPrefix()
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::TermPtr
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233

clucene.sourceforge.net