public interface I_CmsIndexWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this IndexWriter.
|
void |
commit()
Commit all previous operations.
|
void |
deleteDocument(CmsPublishedResource resource)
Delete a document from the index.
|
void |
optimize()
Optimizes the index.
|
void |
updateDocument(java.lang.String rootPath,
I_CmsSearchDocument document)
Update a document in the index.
|
void close() throws java.io.IOException
java.io.IOException
void commit() throws java.io.IOException
java.io.IOException
void deleteDocument(CmsPublishedResource resource) throws java.io.IOException
resource
- the resource to deletejava.io.IOException
- in case something goes wrongvoid optimize() throws java.io.IOException
Please note that as of Lucene 3.5, the direct use of optimize is discouraged as Lucene apparently is now able to manage the file structure so efficiently that frequent optimizations are not longer required.
java.io.IOException
void updateDocument(java.lang.String rootPath, I_CmsSearchDocument document) throws java.io.IOException
rootPath
- the root path of the document to updatedocument
- the document to updatejava.io.IOException
- in case something goes wrong