Socket
Socket
Sign inDemoInstall

nodebb-plugin-solr

Package Overview
Dependencies
62
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.2 to 5.2.3

commitlint.config.js

27

library.js

@@ -142,4 +142,4 @@ 'use strict';

...Solr.config,
secure: Solr.config.secure && Solr.config.secure === 'on'
}
secure: Solr.config.secure && Solr.config.secure === 'on',
};

@@ -184,11 +184,16 @@ Solr.client = engine.createClient(Solr.config);

const query = Solr.client.createQuery().q(term).edismax().qf(fields).start(0).rows(500);
const query = Solr.client.createQuery()
.q(term)
.edismax()
.qf(fields)
.start(0)
.rows(500);
Solr.ping(function(err) {
Solr.ping(function (err) {
if (err) {
// Stop use search engine when connection failed
winston.warn('[plugins/solr] Could not connect to Solr server' );
callback(null, data)
winston.warn('[plugins/solr] Could not connect to Solr server');
callback(null, data);
} else {
Solr.client.search(query, function(err, obj) {
Solr.client.search(query, function (err, obj) {
if (err) {

@@ -200,3 +205,3 @@ return callback(err);

}).filter(Boolean);
callback(null, payload);

@@ -208,7 +213,7 @@ cache.set(term, payload);

}
winston.verbose('[plugin/solr] Search (' + data.index + ') for "' + data.content + '" returned ' + obj.response.docs.length + ' results');
})
});
}
})
});
}

@@ -215,0 +220,0 @@ };

{
"name": "nodebb-plugin-solr",
"version": "5.2.2",
"version": "5.2.3",
"description": "Full-text searching for NodeBB using Apache Solr",

@@ -28,10 +28,12 @@ "main": "library.js",

"lru-cache": "^4.1.2",
"solr-client": "^0.7.0"
"solr-client": "^0.7.1"
},
"devDependencies": {
"@commitlint/cli": "^8.0.0",
"@commitlint/config-angular": "^7.1.2",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.17.3",
"husky": "^2.4.0"
"eslint-plugin-import": "^2.8.0",
"husky": "^2.4.0",
"lint-staged": "^8.2.0"
},

@@ -38,0 +40,0 @@ "nbbpm": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc