public class SRURSSConnector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
recordsPerSession |
Constructor and Description |
---|
SRURSSConnector() |
Modifier and Type | Method and Description |
---|---|
static RSSFeed |
loadSRURSS(java.lang.String rssSearchServiceURL,
java.lang.String query,
int startRecord,
int maximumRecords,
CacheStrategy cacheStrategy,
boolean global,
ClientIdentification.Agent agent)
send a query to a yacy public search interface
|
static java.lang.Thread |
searchSRURSS(java.util.concurrent.BlockingQueue<RSSMessage> queue,
java.lang.String urlBase,
java.lang.String query,
long timeoutInit,
int maximumRecordsInit,
CacheStrategy verify,
boolean global,
ClientIdentification.Agent agent) |
private static final int recordsPerSession
public static java.lang.Thread searchSRURSS(java.util.concurrent.BlockingQueue<RSSMessage> queue, java.lang.String urlBase, java.lang.String query, long timeoutInit, int maximumRecordsInit, CacheStrategy verify, boolean global, ClientIdentification.Agent agent)
public static RSSFeed loadSRURSS(java.lang.String rssSearchServiceURL, java.lang.String query, int startRecord, int maximumRecords, CacheStrategy cacheStrategy, boolean global, ClientIdentification.Agent agent) throws java.io.IOException
rssSearchServiceURL
- the target url base (everything before the ? that follows the SRU request syntax properties). can null, then the local peer is usedquery
- the query as stringstartRecord
- number of first recordmaximumRecords
- maximum number of recordsverify
- if true, result entries are verified using the snippet fetch (slow); if false simply the result is returnedglobal
- if true also search results from other peers are includedjava.io.IOException