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

Loading...
Searching...
No Matches
SpanQuery.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 SPANQUERY_H
8#define SPANQUERY_H
9
10#include "Query.h"
11
12 namespace Lucene {
13
15 class LPPAPI SpanQuery : public Query {
16 public:
17 virtual ~SpanQuery();
18 LUCENE_CLASS(SpanQuery);
19
20 public:
22 virtual SpansPtr getSpans(const IndexReaderPtr& reader) = 0;
23
25 virtual String getField() = 0;
26
27 virtual WeightPtr createWeight(const SearcherPtr& searcher);
28};
29
30}
31
32#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Query.h
Lucene::Query::Query
Query()
Lucene::SpanQuery
Base class for span-based queries.
Definition SpanQuery.h:15
Lucene::SpanQuery::getSpans
virtual SpansPtr getSpans(const IndexReaderPtr &reader)=0
Returns the matches for this query in an index. Used internally to search for spans.
Lucene::SpanQuery::getField
virtual String getField()=0
Returns the name of the field matched by this query.
Lucene::SpanQuery::~SpanQuery
virtual ~SpanQuery()
Lucene::SpanQuery::createWeight
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Constructs an appropriate Weight implementation for this query. Only implemented by primitive queries...
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::WeightPtr
boost::shared_ptr< Weight > WeightPtr
Definition LuceneTypes.h:480
Lucene::SpansPtr
boost::shared_ptr< Spans > SpansPtr
Definition LuceneTypes.h:453
Lucene::SearcherPtr
boost::shared_ptr< Searcher > SearcherPtr
Definition LuceneTypes.h:434
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157

clucene.sourceforge.net