file-system-database
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -169,8 +169,15 @@ "use strict"; | ||
} | ||
logger(`Searching using index ${this.config.name} for collection ${this.config.collection} - loaded ${results.length} matching items - checking against full search criteria`); | ||
entriesUsingIndex.forEach((entry) => { | ||
if (SearchProcessor_1.SearchProcessor.doesItemMatchSearchItems(entry, search)) { | ||
results.push(entry); | ||
} | ||
}); | ||
logger(`Searching using index ${this.config.name} for collection ${this.config.collection} - loaded ${entriesUsingIndex.length} matching items`); | ||
if (search.length > indexSearchItems.length) { | ||
logger('Refining index search results by the full search criteria'); | ||
entriesUsingIndex.forEach((entry) => { | ||
if (SearchProcessor_1.SearchProcessor.doesItemMatchSearchItems(entry, search)) { | ||
results.push(entry); | ||
} | ||
}); | ||
logger(`Searching using index ${this.config.name} for collection ${this.config.collection} - refined to ${results.length} matching items`); | ||
} | ||
else { | ||
results = entriesUsingIndex; | ||
} | ||
if (sort) { | ||
@@ -177,0 +184,0 @@ return SortProcessor_1.SortProcessor.sortItems(results, sort); |
{ | ||
"name": "file-system-database", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "A simple socket framework for persistent JSON objects using the file system", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
259273
4019