| java.lang.Object org.apache.lucene.index.TermVectorMapper org.apache.lucene.index.PositionBasedTermVectorMapper
PositionBasedTermVectorMapper | public class PositionBasedTermVectorMapper extends TermVectorMapper (Code) | | For each Field, store position by position information. It ignores frequency information
This is not thread-safe.
|
Inner Class :public static class TVPositionInfo | |
PositionBasedTermVectorMapper | public PositionBasedTermVectorMapper()(Code) | | |
PositionBasedTermVectorMapper | public PositionBasedTermVectorMapper(boolean ignoringOffsets)(Code) | | |
getFieldToTerms | public Map getFieldToTerms()(Code) | | Get the mapping between fields and terms, sorted by the comparator
A map between field names and a Map. The sub-Map key is the position as the integer, the value is org.apache.lucene.index.PositionBasedTermVectorMapper.TVPositionInfo. |
isIgnoringPositions | public boolean isIgnoringPositions()(Code) | | Never ignores positions. This mapper doesn't make much sense unless there are positions
false |
map | public void map(String term, int frequency, TermVectorOffsetInfo[] offsets, int[] positions)(Code) | | Callback for the TermVectorReader.
Parameters: term - Parameters: frequency - Parameters: offsets - Parameters: positions - |
setExpectations | public void setExpectations(String field, int numTerms, boolean storeOffsets, boolean storePositions)(Code) | | Callback mechanism used by the TermVectorReader
Parameters: field - The field being read Parameters: numTerms - The number of terms in the vector Parameters: storeOffsets - Whether offsets are available Parameters: storePositions - Whether positions are available |
|
|