Skip to content

Commit 9ca2fe6

Browse files
committed
feat: add mergedConfig function
1 parent c240ad3 commit 9ca2fe6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,16 @@ const prepareSolrClient = (userConfig = {}) => {
6666
// some functions require /solr prefix instead of /api/cores/
6767
const configWithSolrPrefix = { ...config, apiPrefix: "solr" }
6868

69+
// we already use the variable config, therefore solrConfigRequest
70+
// represents the "config" API call from Solr
6971
const solrConfigRequest = solrPost(configWithSolrPrefix)("config")
7072

7173
const solrSchemaRequest = op => data =>
7274
solrPost(config)("schema")({ [op]: data })
7375

7476
// now creating the API
7577
return {
78+
mergedConfig: () => config,
7679
ping: () =>
7780
solrPost(configWithSolrPrefix)("admin/ping")({})
7881
.then(value => {

0 commit comments

Comments
 (0)