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

SpanNotQuery.h
Go to the documentation of this file.
1 // 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 SPANNOTQUERY_H
8 #define SPANNOTQUERY_H
9
10 #include "SpanQuery.h"
11
12 namespace Lucene {
13
15 class LPPAPI SpanNotQuery : public SpanQuery {
16 public:
18 SpanNotQuery(const SpanQueryPtr& include, const SpanQueryPtr& exclude);
19 virtual ~SpanNotQuery();
20
21 LUCENE_CLASS(SpanNotQuery);
22
23 protected:
24 SpanQueryPtr include;
25 SpanQueryPtr exclude;
26
27 public:
28 using SpanQuery::toString;
29
31 SpanQueryPtr getInclude();
32
34 SpanQueryPtr getExclude();
35
36 virtual String getField();
37 virtual void extractTerms(SetTerm terms);
38 virtual String toString(const String& field);
39 virtual LuceneObjectPtr clone(const LuceneObjectPtr& other = LuceneObjectPtr());
40 virtual SpansPtr getSpans(const IndexReaderPtr& reader);
41 virtual QueryPtr rewrite(const IndexReaderPtr& reader);
42
43 virtual bool equals(const LuceneObjectPtr& other);
44 virtual int32_t hashCode();
45 };
46
47 }
48
49 #endif
Lucene::SpanQueryPtr
boost::shared_ptr< SpanQuery > SpanQueryPtr
Definition: LuceneTypes.h:450
Lucene::SpanQuery
Base class for span-based queries.
Definition: SpanQuery.h:15
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Lucene::QueryPtr
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
Lucene::SpanNotQuery
Removes matches which overlap with another SpanQuery.
Definition: SpanNotQuery.h:15
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
Lucene::SpanNotQuery::exclude
SpanQueryPtr exclude
Definition: SpanNotQuery.h:25
SpanQuery.h
Lucene::SpansPtr
boost::shared_ptr< Spans > SpansPtr
Definition: LuceneTypes.h:453
Lucene::Query::toString
virtual String toString()
Prints a query to a string.

clucene.sourceforge.net