new RetrieveAndRankV1(options)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
- Source:
Methods
createCluster(params, callback)
Creates a Solr cluster.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Optional params |
|
callback |
The callback. |
- Source:
createCollection(params, callback)
Create a Solr collection.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: Optional params: |
|
callback |
The callback. |
- Source:
createRanker()
Creates a ranker
- Source:
createSolrClient(params)
Get a Solr client for indexing and searching documents. See https://github.com/lbdremy/solr-node-client for documentation and examples.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
- Source:
deleteCluster(params, callback)
Deletes a Solr cluster.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
deleteCollection(params, callback)
Delete a Solr collection.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: Optional params: |
|
callback |
The callback. |
- Source:
deleteConfig(params, callback)
Delete a configuration set in ZooKeeper.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
deleteRanker()
Deletes a ranker
- Source:
getClusterStats(params, callback)
Get memory and disk usage stats from a Solr cluster
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
getConfig(params, callback)
Get a configuration set from ZooKeeper as a .zip file.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
getResizeStatus(params, callback)
Get the status of a resize request.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
listClusters(params, callback)
Lists all Solr clusters associated with the service instance.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. This request currently does not require any parameters. |
|
callback |
The callback. |
- Source:
listCollections(params, callback)
List all collections for a Solr cluster.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: Optional params: |
|
callback |
The callback. |
- Source:
listConfigs(params, callback)
Lists the configuration sets in ZooKeeper.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
listRankers()
Retrieves the list of rankers for the user
- Source:
pollCluster(params, callback)
Checks whether the specified Solr cluster is ready for use.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
rank(params, callback)
Returns the ranked candidates
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | everything except answer_data and answers will be passed in as answer_metadata Properties
|
||||||||||||
callback |
function |
- Source:
rankerStatus()
Returns the training status of the ranker
- Source:
resizeCluster(params, callback)
Change the size of the Solr cluster.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source:
uploadConfig(params, callback)
Upload a configuration set to ZooKeeper.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
An Object representing the parameters for this service call. Required params: |
|
callback |
The callback. |
- Source: