com.clusterpoint.api.request
Class CPSSimilarDocumentRequest
java.lang.Object
com.clusterpoint.api.CPSRequest
com.clusterpoint.api.request.CPSSimilarDocumentRequest
public class CPSSimilarDocumentRequest extends CPSRequest
The CPSSimilarDocumentRequest class is a wrapper for the CPSRequest class for the similar command for documents
See Also: CPSSearchResponse
Constructor Summary
CPSSimilarDocumentRequest (java.lang.String query,
int len,
int quota,
int offset,
int docs)
Constructs an instance of the CPSSimilarDocumentRequest class.
Method Summary
void
setId (java.lang.String id)
void
setQuery (java.lang.String query)
Defines query that all found documents have to match against
void
setText (java.lang.String text)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
CPSSimilarDocumentRequest
public CPSSimilarDocumentRequest (java.lang.String query,
int len,
int quota,
int offset,
int docs)
throws java.lang.Exception
Constructs an instance of the CPSSimilarDocumentRequest class.
Parameters: len - number of keywords to extract from the sourcequota - minimum number of keywords matching in the destinationoffset - number of results to skip before returning the following onesdocs - number of documents to retrieve
Throws:
java.lang.Exception
setId
public void setId (java.lang.String id)
throws java.lang.Exception
Parameters: id - ID of the source document - the one that You want to search similar documents to
Throws:
java.lang.Exception
setText
public void setText (java.lang.String text)
throws java.lang.Exception
Parameters: text - A chunk of text that the found documents have to be similar to
Throws:
java.lang.Exception
setQuery
public void setQuery (java.lang.String query)
throws java.lang.Exception
Defines query that all found documents have to match against
Parameters: query - query string
Throws:
java.lang.Exception