@wmfs/tymly-solr-plugin
Advanced tools
Comparing version 2.28.0 to 2.29.0
const solr = require('solr-client') | ||
const debug = require('debug')('solr') | ||
class removeDocs { | ||
class RemoveDocsByQuery { | ||
init (resourceConfig, env) { | ||
@@ -14,7 +14,7 @@ this.schema = require('./schema.json') | ||
debug(`Deleteing docs where ${query.join(' AND ')}`) | ||
debug(`Deleting docs where ${query.join(' AND ')}`) | ||
this.solrClient.deleteByQuery(query.join(' AND '), (err, obj) => { | ||
if (err) { | ||
return context.sendTaskFailure({ error: 'removeDocsFail', cause: err }) | ||
return context.sendTaskFailure({ error: 'RemoveDocsByQueryFail', cause: err }) | ||
} | ||
@@ -24,3 +24,3 @@ | ||
if (err) { | ||
return context.sendTaskFailure({ error: 'removeDocsFail', cause: err }) | ||
return context.sendTaskFailure({ error: 'RemoveDocsByQueryFail', cause: err }) | ||
} | ||
@@ -51,2 +51,2 @@ | ||
module.exports = removeDocs | ||
module.exports = RemoveDocsByQuery |
{ | ||
"name": "@wmfs/tymly-solr-plugin", | ||
"version": "2.28.0", | ||
"version": "2.29.0", | ||
"description": "Plugin which handles interaction with Apache Solr for Tymly framework", | ||
@@ -34,6 +34,6 @@ "homepage": "https://github.com/wmfs/tymly-solr-plugin#readme", | ||
"@semantic-release/exec": "6.0.1", | ||
"@wmfs/tymly": "1.216.0", | ||
"@wmfs/tymly": "1.217.0", | ||
"@wmfs/tymly-pg-plugin": "1.256.0", | ||
"@wmfs/tymly-rbac-plugin": "1.18.1", | ||
"@wmfs/tymly-cardscript-plugin": "1.32.0", | ||
"@wmfs/tymly-cardscript-plugin": "1.35.1", | ||
"@wmfs/tymly-test-helpers": "1.10.0", | ||
@@ -40,0 +40,0 @@ "chai": "4.3.4", |
{ | ||
"name": "solr", | ||
"version": "2.28.0", | ||
"version": "2.29.0", | ||
"label": "Solr", | ||
@@ -5,0 +5,0 @@ "author": "Tim Needham", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211844
83
2452