Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
FieldInvertState.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 FIELDINVERTSTATE_H
8
#define FIELDINVERTSTATE_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
{
13
16
class
LPPAPI
FieldInvertState
:
public
LuceneObject
{
17
public
:
18
FieldInvertState
(int32_t position = 0, int32_t
length
= 0, int32_t
numOverlap
= 0, int32_t
offset
= 0,
double
boost
= 0);
19
virtual
~FieldInvertState
();
20
21
LUCENE_CLASS
(
FieldInvertState
);
22
23
INTERNAL:
24
int32_t position;
25
int32_t
length
;
26
int32_t
numOverlap
;
27
int32_t
offset
;
28
double
boost
;
29
AttributeSourcePtr
attributeSource
;
30
31
public
:
34
void
reset
(
double
docBoost);
35
38
int32_t
getPosition
();
39
42
int32_t
getLength
();
43
46
int32_t
getNumOverlap
();
47
50
int32_t
getOffset
();
51
55
double
getBoost
();
56
57
AttributeSourcePtr
getAttributeSource
();
58
};
59
60
}
61
62
#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::FieldInvertState::attributeSource
AttributeSourcePtr attributeSource
Definition
FieldInvertState.h:29
Lucene::FieldInvertState::getOffset
int32_t getOffset()
Get end offset of the last processed term.
Lucene::FieldInvertState::getPosition
int32_t getPosition()
Get the last processed term position.
Lucene::FieldInvertState::offset
int32_t offset
Definition
FieldInvertState.h:27
Lucene::FieldInvertState::length
int32_t length
Definition
FieldInvertState.h:25
Lucene::FieldInvertState::FieldInvertState
FieldInvertState(int32_t position=0, int32_t length=0, int32_t numOverlap=0, int32_t offset=0, double boost=0)
Lucene::FieldInvertState::getLength
int32_t getLength()
Get total number of terms in this field.
Lucene::FieldInvertState::numOverlap
int32_t numOverlap
Definition
FieldInvertState.h:26
Lucene::FieldInvertState::reset
void reset(double docBoost)
Re-initialize the state, using this boost value.
Lucene::FieldInvertState::getNumOverlap
int32_t getNumOverlap()
Get the number of terms with positionIncrement == 0.
Lucene::FieldInvertState::~FieldInvertState
virtual ~FieldInvertState()
Lucene::FieldInvertState::boost
double boost
Definition
FieldInvertState.h:28
Lucene::FieldInvertState::getBoost
double getBoost()
Get boost value. This is the cumulative product of document boost and field boost for all field insta...
Lucene::FieldInvertState::getAttributeSource
AttributeSourcePtr getAttributeSource()
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::AttributeSourcePtr
boost::shared_ptr< AttributeSource > AttributeSourcePtr
Definition
LuceneTypes.h:520
clucene.sourceforge.net