Global

Methods


Constructor(request, opts)

Parameters:
Name Type Description
request object

Request

opts object

Default Request params

Source:
Returns:

Promise

Type
object

Name(opts)

Parameters:
Name Type Description
opts object

Options

Source:
Returns:

Returns a Promise

Type
object

Req request method(opts)

Parameters:
Name Type Description
opts object

Options

Source:
Returns:

Returns a Promise

Type
object

someMethod()

Solr Config API
https://cwiki.apache.org/confluence/display/solr/RequestHandlers+and+SearchComponents+in+SolrConfig

Source:

someMethod()

Solr Config API
https://cwiki.apache.org/confluence/display/solr/RequestHandlers+and+SearchComponents+in+SolrConfig

Source:

someMethod()

Solr Config API
https://cwiki.apache.org/confluence/display/solr/RequestHandlers+and+SearchComponents+in+SolrConfig

Source:

someMethod()

Solr BolbStore API
https://cwiki.apache.org/confluence/display/solr/Blob+Store+API

Source:

Suggest(request, opts, query)

Solr Suggester

Parameters:
Name Type Description
request object

Request

opts object

Options

query object

Query

Source:
Returns:

Promise

Type
object

update()

Solr Config API
https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-JSONFormattedIndexUpdates

curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983/solr/my_collection/update' --data-binary '
{
"add": {
"doc": {
"id": "DOC1",
"my_boosted_field": { // use a map with boost/value for a boosted field //
"boost": 2.3,
"value": "test"
},
"my_multivalued_field": [ "aaa", "bbb" ] // Can use an array for a multi-valued field //
}
},
"add": {
"commitWithin": 5000, // commit this document within 5 seconds //
"overwrite": false, // don't check for existing documents with the same uniqueKey //
"boost": 3.45, // a document boost //
"doc": {
"f1": "v1", // Can use repeated keys for a multi-valued field //
"f1": "v2"
}
},

"commit": {},
"optimize": { "waitSearcher":false },

"delete": { "id":"ID" }, // delete by ID
"delete": { "query":"QUERY" } // delete by query
}'

Source: