We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mergedConfig
1 parent c240ad3 commit 9ca2fe6Copy full SHA for 9ca2fe6
1 file changed
src/index.js
@@ -66,13 +66,16 @@ const prepareSolrClient = (userConfig = {}) => {
66
// some functions require /solr prefix instead of /api/cores/
67
const configWithSolrPrefix = { ...config, apiPrefix: "solr" }
68
69
+ // we already use the variable config, therefore solrConfigRequest
70
+ // represents the "config" API call from Solr
71
const solrConfigRequest = solrPost(configWithSolrPrefix)("config")
72
73
const solrSchemaRequest = op => data =>
74
solrPost(config)("schema")({ [op]: data })
75
76
// now creating the API
77
return {
78
+ mergedConfig: () => config,
79
ping: () =>
80
solrPost(configWithSolrPrefix)("admin/ping")({})
81
.then(value => {
0 commit comments