public class TermVectorAccessor extends Object
Constructor and Description |
---|
TermVectorAccessor() |
Modifier and Type | Method and Description |
---|---|
void |
accept(IndexReader indexReader,
int documentNumber,
String fieldName,
TermVectorMapper mapper)
Visits the TermVectorMapper and populates it with terms available for a given document,
either via a vector created at index time or by resolving them from the inverted index.
|
public void accept(IndexReader indexReader, int documentNumber, String fieldName, TermVectorMapper mapper) throws IOException
indexReader
- Index sourcedocumentNumber
- Source document to accessfieldName
- Field to resolvemapper
- Mapper to be mapped with dataIOException