public interface FederateSearchConnector
Modifier and Type | Method and Description |
---|---|
boolean |
init(java.lang.String instanceName,
java.lang.String cfg)
Load the configuration for this connector every connector needs at least
a query target (where to query) and some definition to convert the remote
serch result to the internal result presentation (field mapping)
|
java.util.List<URIMetadataNode> |
query(QueryParams query)
Queries a remote system and returns the search result with field names
according to YaCy schema.
|
void |
search(SearchEvent theSearch)
Queries a remote system and adds the result metadata to the search events
result list.
|
boolean init(java.lang.String instanceName, java.lang.String cfg)
instanceName
- is also the name of the config file DATA/SETTINGS/instanceName.schemacfg
- config parametervoid search(SearchEvent theSearch)
theSearch
- java.util.List<URIMetadataNode> query(QueryParams query)
query
-