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

SpanQueryFilter.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 SPANQUERYFILTER_H
8 #define SPANQUERYFILTER_H
9
10 #include "SpanFilter.h"
11
12 namespace Lucene {
13
20 class LPPAPI SpanQueryFilter : public SpanFilter {
21 public:
24 SpanQueryFilter(const SpanQueryPtr& query = SpanQueryPtr());
25
26 virtual ~SpanQueryFilter();
27
28 LUCENE_CLASS(SpanQueryFilter);
29
30 protected:
31 SpanQueryPtr query;
32
33 public:
34 virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr& reader);
35 virtual SpanFilterResultPtr bitSpans(const IndexReaderPtr& reader);
36
37 SpanQueryPtr getQuery();
38
39 virtual String toString();
40 virtual bool equals(const LuceneObjectPtr& other);
41 virtual int32_t hashCode();
42 };
43
44 }
45
46 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
SpanFilter.h
Lucene::SpanFilter
Abstract base class providing a mechanism to restrict searches to a subset of an index and also maint...
Definition: SpanFilter.h:21
Lucene::SpanQueryFilter
Constrains search results to only match those which also match a provided query. Also provides positi...
Definition: SpanQueryFilter.h:20
Lucene::SpanQueryFilter::getQuery
SpanQueryPtr getQuery()
Lucene::SpanQueryFilter::toString
virtual String toString()
Returns a string representation of the object.
Lucene::SpanQueryFilter::equals
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Lucene::SpanQueryFilter::hashCode
virtual int32_t hashCode()
Return hash code for this object.
Lucene::SpanQueryFilter::~SpanQueryFilter
virtual ~SpanQueryFilter()
Lucene::SpanQueryFilter::SpanQueryFilter
SpanQueryFilter(const SpanQueryPtr &query=SpanQueryPtr())
Constructs a filter which only matches documents matching query.
Lucene::SpanQueryFilter::query
SpanQueryPtr query
Definition: SpanQueryFilter.h:28
Lucene::SpanQueryFilter::bitSpans
virtual SpanFilterResultPtr bitSpans(const IndexReaderPtr &reader)
Returns a SpanFilterResult with true for documents which should be permitted in search results,...
Lucene::SpanQueryFilter::getDocIdSet
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)
Creates a DocIdSet enumerating the documents that should be permitted in search results.
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::SpanQueryPtr
boost::shared_ptr< SpanQuery > SpanQueryPtr
Definition: LuceneTypes.h:450
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Lucene::DocIdSetPtr
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
Lucene::SpanFilterResultPtr
boost::shared_ptr< SpanFilterResult > SpanFilterResultPtr
Definition: LuceneTypes.h:445
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157

clucene.sourceforge.net