public class MemoryFieldsIndex extends MemoryFields
Index.UpdatingCollectionStatistics
docFields, fdpl, pipeline
blocks, compressionConfig, docPostings, document, fieldIDs, fields, fieldtags, indexingLock, inverted, lexicon, logger, metadata, pipeline_first, PIPELINE_NAMESPACE, stats
dirtyProperties, EMPTY_CLASS_ARRAY, lastLoadError, MINIMUM_INDEX_TERRIER_VERSION, properties, PROPERTIES_SUFFIX, RETRIEVAL_LOADING_PROFILE
Constructor and Description |
---|
MemoryFieldsIndex()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
indexDocument(Document doc)
Index a new document.
|
void |
indexDocument(Map<String,String> docProperties,
DocumentPostingList docContents)
Index a new document.
|
Index |
merge(String diskpath,
String diskprefix,
String newpath,
String newprefix)
Not implemented.
|
Index |
write(String path,
String prefix)
Write index structures to disk.
|
collectProperties, getDocumentIndex, getEndOfPipeline
addToDocument, addToDocument, close, flush, getCollectionStatistics, getDirectIndex, getIndexStructure, getIndexStructureInputStream, getInvertedIndex, getLexicon, getMetaIndex, load_pipeline, removeDocument, toString
addIndexStructure, addIndexStructure, addIndexStructure, addIndexStructure, addIndexStructureInputStream, addIndexStructureInputStream, addIndexStructureInputStream, addIndexStructureInputStream, allExists, createIndex, createIndex, createNewIndex, existsIndex, getEnd, getIndexLoadingProfileAsRetrieval, getIndexProperty, getIntIndexProperty, getLastIndexLoadError, getProperties, getStart, hasIndexStructure, hasIndexStructureInputStream, join, main, setIndexLoadingProfileAsRetrieval, setIndexProperty
public void indexDocument(Map<String,String> docProperties, DocumentPostingList docContents) throws Exception
indexDocument
in interface UpdatableIndex
indexDocument
in class MemoryIndex
Exception
public void indexDocument(Document doc) throws Exception
indexDocument
in interface UpdatableIndex
indexDocument
in class MemoryIndex
Exception
public Index write(String path, String prefix) throws IOException
write
in interface WritableIndex
write
in class MemoryIndex
IOException
public Index merge(String diskpath, String diskprefix, String newpath, String newprefix) throws IOException
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow