|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexWebService
Interface for indexing web service. Indexes single documents into a persistent index, allows for retrieval of specific documents from that index by document ID, and searching on the index. The web service corresponds to a single persistent index. If multiple indexes are used, then multiple web services are required.
Method Summary | |
---|---|
void |
finish(String sessionID)
Indicates that the current indexing session is finished and all changes to the the index should be flushed. |
String |
get(String sessionID,
String docID,
String format)
Loads the document with the given docID from the index. |
void |
index(String sessionID,
String document,
String format)
Indexes the provided document. |
void |
remove(String sessionID,
String docID)
Removes the document with the given docID from the index. |
void |
setPath(String sessionID,
String path)
Changes the index path. |
Methods inherited from interface com.languagecomputer.api.BaseWebService |
---|
registerSession, unregisterSession |
Method Detail |
---|
void setPath(String sessionID, String path) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.path
- The new path to the index.
Exception
- If there was an error changing the index path.void index(String sessionID, String document, String format) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.document
- The document in the format described in the
format parameter.format
- The format in which the given document is in.
Defaults to XML
.
Exception
- If there was an error indexing the document.void finish(String sessionID) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.
Exception
- If there was an error finishing the indexing.String get(String sessionID, String docID, String format) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.docID
- The id of the document to load and return.format
- The format in which the annotations should be returned.
Defaults to XML
.
Exception
- If there was an error retrieving the document.void remove(String sessionID, String docID) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.docID
- The id of the document to load and return.
Exception
- If there was an error removing the document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |