|
||||||||||
| 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(Document document)
Adds a document. |
DocumentWriter |
add(Document document,
Analyzer analyzer)
Adds a document. |
DocumentWriter |
delete(String field,
String text)
Deletes documents matching a certain term. |
DocumentWriter |
delete(Term term)
Deletes documents matching a certain term. |
DocumentWriter |
deleteAll()
Deletes all documents. |
DocumentWriter |
update(String field,
String text,
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,
Document document,
Analyzer analyzer)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
DocumentWriter |
update(Term term,
Document document)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
DocumentWriter |
update(Term term,
Document document,
Analyzer analyzer)
Atomically (with respect to index flushing) deletes the documents matching a certain term and adds a document. |
| Method Detail |
|---|
DocumentWriter add(@Nullable
Document document)
throws InterruptedException,
IndexException
document - Document to add. If null the method is a no-op.
InterruptedException
IndexException
DocumentWriter add(@Nullable
Document document,
@Nullable
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
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
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
Term term,
@Nullable
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
Document document,
@Nullable
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
Term term,
@Nullable
Document document,
@Nullable
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 | |||||||||