|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexWriter
Represents an index writer.
Method Summary | |
---|---|
void |
addDocument(org.apache.lucene.document.Document document)
Adds the given document to index. |
void |
close()
Close the index writer. |
void |
deleteDocument(long uid)
Deletes the document specified by the uid. |
void |
deleteDocument(java.lang.String uid)
Deletes the document specified by the uid. |
void |
flush()
Flush the changes. |
void |
open(java.util.Locale locale,
boolean recreate)
Open the index writer with the given locale. |
void |
open(java.lang.String indexDir,
java.util.Locale locale,
boolean recreate)
Open the index writer with the given locale at the given directory. |
void |
updateDocument(org.apache.lucene.document.Document document)
Updates the document in the index. |
Method Detail |
---|
void addDocument(org.apache.lucene.document.Document document)
document
- the document to add into indexvoid close()
void deleteDocument(long uid)
uid
- the uid of the objectvoid deleteDocument(java.lang.String uid)
uid
- the uid of the objectvoid flush()
void open(java.util.Locale locale, boolean recreate)
locale
- the localerecreate
- set this to true
if you want to recreate the index.void open(java.lang.String indexDir, java.util.Locale locale, boolean recreate)
indexDir
- the index directorylocale
- the localerecreate
- set this to true
if you want to recreate the index.void updateDocument(org.apache.lucene.document.Document document)
document
- the document to update in the index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |