|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentWriter
Conquiris document writing interface. Implementations MUST BE thread-safe. All methods throw
IllegalStateException if the writer can no longer be used, InterruptedException
if the thread they are running is interrupted and IndexException if there's a problem
with the index.
| Method Summary | |
|---|---|
DocumentWriter |
add(org.apache.lucene.document.Document document)
Adds a document. |
DocumentWriter |
add(org.apache.lucene.document.Document document,
org.apache.lucene.analysis.Analyzer analyzer)
Adds a document. |
DocumentWriter |
delete(String field,
String text)
Deletes documents matching a certain term. |
DocumentWriter |
delete(org.apache.lucene.index.Term term)
Deletes documents matching a certain term. |
DocumentWriter |
deleteAll()
Deletes all documents. |
DocumentWriter |
update(String field,
String text,
org.apache.lucene.document.Document document)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
DocumentWriter |
update(String field,
String text,
org.apache.lucene.document.Document document,
org.apache.lucene.analysis.Analyzer analyzer)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
DocumentWriter |
update(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
DocumentWriter |
update(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document,
org.apache.lucene.analysis.Analyzer analyzer)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
| Method Detail |
|---|
DocumentWriter add(@Nullable
org.apache.lucene.document.Document document)
throws InterruptedException,
IndexException
document - Document to add. If null the method is a no-op.
InterruptedException
IndexException
DocumentWriter add(@Nullable
org.apache.lucene.document.Document document,
@Nullable
org.apache.lucene.analysis.Analyzer analyzer)
throws InterruptedException,
IndexException
document - Document to add. If null the method is a no-op.analyzer - Analyzer to use. If null the service default analyzer will be used.
InterruptedException
IndexException
DocumentWriter deleteAll()
throws InterruptedException,
IndexException
InterruptedException
IndexException
DocumentWriter delete(@Nullable
String field,
@Nullable
String text)
throws InterruptedException,
IndexException
field - Field to match. If null the method is a no-op.text - Term text to match. If null the method is a no-op.
InterruptedException
IndexException
DocumentWriter delete(@Nullable
org.apache.lucene.index.Term term)
throws InterruptedException,
IndexException
term - Term to match. If null the method is a no-op.
InterruptedException
IndexException
DocumentWriter update(@Nullable
String field,
@Nullable
String text,
@Nullable
org.apache.lucene.document.Document document)
throws InterruptedException,
IndexException
field - Field to match. If null no deletion will be performed.text - Term text to match. If null no deletion will be performed.document - Document to add. If null no document will be added.
InterruptedException
IndexException
DocumentWriter update(@Nullable
org.apache.lucene.index.Term term,
@Nullable
org.apache.lucene.document.Document document)
throws InterruptedException,
IndexException
term - Term to match. If null no deletion will be performed.document - Document to add. If null no document will be added.
InterruptedException
IndexException
DocumentWriter update(@Nullable
String field,
@Nullable
String text,
@Nullable
org.apache.lucene.document.Document document,
@Nullable
org.apache.lucene.analysis.Analyzer analyzer)
throws InterruptedException,
IndexException
field - Field to match. If null no deletion will be performed.text - Term text to match. If null no deletion will be performed.document - Document to add. If null no document will be added.analyzer - Analyzer to use. If null the service default analyzer will be used.
InterruptedException
IndexException
DocumentWriter update(@Nullable
org.apache.lucene.index.Term term,
@Nullable
org.apache.lucene.document.Document document,
@Nullable
org.apache.lucene.analysis.Analyzer analyzer)
throws InterruptedException,
IndexException
term - Term to match. If null no deletion will be performed.document - Document to add. If null no document will be added.analyzer - Analyzer to use. If null the service default analyzer will be used.
InterruptedException
IndexException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||