public interface I_CmsIndexWriter
| 限定符和类型 | 方法和说明 |
|---|---|
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.IOExceptionvoid commit()
throws java.io.IOException
java.io.IOExceptionvoid 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.IOExceptionvoid 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