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

ExactPhraseScorer.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 EXACTPHRASESCORER_H
8 #define EXACTPHRASESCORER_H
9
10 #include "PhraseScorer.h"
11
12 namespace Lucene {
13
14 class ExactPhraseScorer : public PhraseScorer {
15 public:
16 ExactPhraseScorer(const WeightPtr& weight, Collection<TermPositionsPtr> tps, Collection<int32_t> offsets, const SimilarityPtr& similarity, ByteArray norms);
17 virtual ~ExactPhraseScorer();
18
19 LUCENE_CLASS(ExactPhraseScorer);
20
21 protected:
22 virtual double phraseFreq();
23 };
24
25 }
26
27 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
PhraseScorer.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
Lucene::ExactPhraseScorer
Definition: ExactPhraseScorer.h:14
Lucene::ExactPhraseScorer::ExactPhraseScorer
ExactPhraseScorer(const WeightPtr &weight, Collection< TermPositionsPtr > tps, Collection< int32_t > offsets, const SimilarityPtr &similarity, ByteArray norms)
Lucene::ExactPhraseScorer::phraseFreq
virtual double phraseFreq()
For a document containing all the phrase query terms, compute the frequency of the phrase in that doc...
Lucene::ExactPhraseScorer::~ExactPhraseScorer
virtual ~ExactPhraseScorer()
Lucene::PhraseScorer
Scoring functionality for phrase queries. A document is considered matching if it contains the phrase...
Definition: PhraseScorer.h:21
Lucene::PhraseScorer::norms
ByteArray norms
Definition: PhraseScorer.h:30
Lucene::PhraseScorer::weight
WeightPtr weight
Definition: PhraseScorer.h:26
Lucene::Scorer::similarity
SimilarityPtr similarity
Definition: Scorer.h:45
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::SimilarityPtr
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
Lucene::WeightPtr
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480

clucene.sourceforge.net