|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface I_CmsIndexWriter
Abstracts the index writer implementation for the most important index manipulation operations.
| Method Summary | |
|---|---|
void |
close()
Close this IndexWriter. |
void |
commit()
Commit all previous operations. |
void |
deleteDocuments(java.lang.String rootPath)
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. |
| Method Detail |
|---|
void close()
throws java.io.IOException
java.io.IOException
void commit()
throws java.io.IOException
java.io.IOException
void deleteDocuments(java.lang.String rootPath)
throws java.io.IOException
rootPath - the root path of the document to delete
java.io.IOException - in case something goes wrong
void 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 update
java.io.IOException - in case something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||