7#ifndef FIELDSORTEDTERMVECTORMAPPER_H
8#define FIELDSORTEDTERMVECTORMAPPER_H
10#include <boost/function.hpp>
39 virtual void setExpectations(
const String& field, int32_t numTerms,
bool storeOffsets,
bool storePositions);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
MapStringCollectionTermVectorEntry fieldToTerms
Definition FieldSortedTermVectorMapper.h:29
virtual void setExpectations(const String &field, int32_t numTerms, bool storeOffsets, bool storePositions)
Tell the mapper what to expect in regards to field, number of terms, offset and position storage.
TermVectorEntryComparator comparator
Definition FieldSortedTermVectorMapper.h:32
String currentField
Definition FieldSortedTermVectorMapper.h:31
virtual void map(const String &term, int32_t frequency, Collection< TermVectorOffsetInfoPtr > offsets, Collection< int32_t > positions)
Map the Term Vector information into your own structure.
Collection< TermVectorEntryPtr > currentSet
Definition FieldSortedTermVectorMapper.h:30
virtual ~FieldSortedTermVectorMapper()
TermVectorEntryComparator getComparator()
FieldSortedTermVectorMapper(TermVectorEntryComparator comparator)
FieldSortedTermVectorMapper(bool ignoringPositions, bool ignoringOffsets, TermVectorEntryComparator comparator)
MapStringCollectionTermVectorEntry getFieldToTerms()
Get the mapping between fields and terms, sorted by the comparator.
bool ignoringOffsets
Definition TermVectorMapper.h:31
TermVectorMapper(bool ignoringPositions=false, bool ignoringOffsets=false)
bool ignoringPositions
Definition TermVectorMapper.h:30
Definition AbstractAllTermDocs.h:12