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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SpanNotQuery.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 SPANNOTQUERY_H
8 #define SPANNOTQUERY_H
9
10 #include "SpanQuery.h"
11
12 namespace Lucene
13 {
15 class LPPAPI SpanNotQuery : public SpanQuery
16 {
17 public:
19 SpanNotQuery(SpanQueryPtr include, SpanQueryPtr exclude);
20 virtual ~SpanNotQuery();
21
22 LUCENE_CLASS(SpanNotQuery);
23
24 protected:
25 SpanQueryPtr include;
26 SpanQueryPtr exclude;
27
28 public:
29 using SpanQuery::toString;
30
32 SpanQueryPtr getInclude();
33
35 SpanQueryPtr getExclude();
36
37 virtual String getField();
38 virtual void extractTerms(SetTerm terms);
39 virtual String toString(const String& field);
40 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
41 virtual SpansPtr getSpans(IndexReaderPtr reader);
42 virtual QueryPtr rewrite(IndexReaderPtr reader);
43
44 virtual bool equals(LuceneObjectPtr other);
45 virtual int32_t hashCode();
46 };
47 }
48
49 #endif

clucene.sourceforge.net