Interface IndexerIF
- All Known Implementing Classes:
LuceneIndexer
public interface IndexerIF
INTERNAL: Represents a search engine indexer. Instances of this class
are able to index documents and generate an index which can be used
for searching those documents.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Closes the indexer.voiddelete()INTERNAL: Deletes the index.voidINTERNAL: Removes all documents with the specified field value from the index.voidflush()INTERNAL: Flushes all changes done to the index.voidindex(DocumentIF document) INTERNAL: Indexes the specified document.
-
Method Details
-
index
INTERNAL: Indexes the specified document. This includes tokenizing, indexing and storing the document fields.- Throws:
IOException
-
delete
INTERNAL: Removes all documents with the specified field value from the index. This method should generally be, but is not limited to, used to delete documents by their identity field.- Throws:
IOException
-
flush
INTERNAL: Flushes all changes done to the index. A flushing operation can include actions like persisting changes and optimizing the index.- Throws:
IOException
-
delete
INTERNAL: Deletes the index. The indexer is closed after this method returns. Note that some indexers might not support this operation.- Throws:
IOException- Since:
- 1.3
-
close
INTERNAL: Closes the indexer. After the indexer has been closed it cannot (generally) be reopened.- Throws:
IOException
-