|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlux.DirectDocWriter
public class DirectDocWriter
Writes documents directly to a Lucene index.
| Constructor Summary | |
|---|---|
DirectDocWriter(XmlIndexer indexer,
org.apache.lucene.index.IndexWriter indexWriter)
|
|
| Method Summary | |
|---|---|
void |
close()
Commits and closes the underlying IndexWriter. |
void |
commit()
Commits all changes to the index, making them visible to readers. |
void |
delete(String uri)
Deletes the document having the given uri, if it exists. |
void |
deleteAll()
Deletes all documents in the index. |
void |
write(net.sf.saxon.om.NodeInfo node,
String uri)
Writes a document to the index at the given uri, with the node as its root element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectDocWriter(XmlIndexer indexer,
org.apache.lucene.index.IndexWriter indexWriter)
| Method Detail |
|---|
public void write(net.sf.saxon.om.NodeInfo node,
String uri)
DocWriter
write in interface DocWriternode - A node to write as a documenturi - The uri of the documentpublic void delete(String uri)
DocWriter
delete in interface DocWriterpublic void deleteAll()
DocWriter
deleteAll in interface DocWriterpublic void commit()
DocWriter
commit in interface DocWriterpublic void close()
DocWriter
close in interface DocWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||