|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RMI Remote Interface for the Server part of the distributed IS Search application
Field Summary | |
static int |
port
The port of the RMI service that is used by clients to submit queries to the server. |
static String |
serviceName
The name of the peer search engine that is used by clients to execute queries via RMI. |
Method Summary | |
ISPeerResultInterface[] |
search(String query,
int numResults)
Remotely invocable search method. |
Field Detail |
public static final int port
public static final String serviceName
Method Detail |
public ISPeerResultInterface[] search(String query, int numResults) throws RemoteException
query
- The query that is submitted by the client. The query syntax is prescribed by Assignment 4 (Query Processor).numResults
- The max number of best matches that can be returned as search results for the query.
numResults
matches, sorted
in DESCENDING ORDER of relevance.
The relevance is defined as the similarity
between the document and the query (we use the scalar product
between two feature vectors that represent the query and the document
as the similarity metric).
RemoteException
- if the remote invocation of the search fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |