@hydrooj/elastic-search
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@hydrooj/elastic-search", | ||
"version": "1.0.0", | ||
"main": "package.json", | ||
"repository": "https://github.com/hydro-dev/Hydro", | ||
"author": "undefined <i@undefined.moe>", | ||
"license": "AGPL-3.0-or-later", | ||
"dependencies": { | ||
"@elastic/elasticsearch": "^8.1.0" | ||
} | ||
} | ||
"name": "@hydrooj/elastic-search", | ||
"version": "1.0.1", | ||
"main": "package.json", | ||
"repository": "https://github.com/hydro-dev/Hydro", | ||
"author": "undefined <i@undefined.moe>", | ||
"license": "AGPL-3.0-or-later", | ||
"dependencies": { | ||
"@elastic/elasticsearch": "^8.1.0" | ||
} | ||
} |
@@ -52,3 +52,3 @@ import { Client } from '@elastic/elasticsearch'; | ||
minimum_should_match: 1, | ||
should: domainIds.map((i) => ({ match: { domainId: i } })), | ||
should: domainIds.map((i) => ({ term: { domainId: i } })), | ||
}, | ||
@@ -68,3 +68,3 @@ }, | ||
try { | ||
if (domainId) await client.deleteByQuery({ index: 'problem', query: { match: { domainId } } }); | ||
if (domainId) await client.deleteByQuery({ index: 'problem', query: { term: { domainId } } }); | ||
else await client.deleteByQuery({ index: 'problem', query: { match_all: {} } }); | ||
@@ -71,0 +71,0 @@ } catch (e) { |
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
122266
5