public interface UpdatableIndex
Modifier and Type | Method and Description |
---|---|
boolean |
addToDocument(int docid,
Document doc)
Adds specified content contents to the named document id.
|
boolean |
addToDocument(int docid,
DocumentPostingList docContents)
Adds relevant terms to the named document id.
|
void |
indexDocument(Document doc)
Add a new document to the index.
|
void |
indexDocument(Map<String,String> docProperties,
DocumentPostingList docContents)
Add a new pre-parsed document to the index.
|
boolean |
removeDocument(int docid)
Removes a document from the index.
|
void indexDocument(Document doc) throws Exception
Exception
void indexDocument(Map<String,String> docProperties, DocumentPostingList docContents) throws Exception
Exception
boolean removeDocument(int docid)
boolean addToDocument(int docid, Document doc) throws Exception
Exception
boolean addToDocument(int docid, DocumentPostingList docContents) throws Exception
Exception
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow