1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-28 14:29:01 +02:00

document resolver, reduce code duplication, refactoring

This commit is contained in:
Thomas Wilkerling
2025-03-19 14:33:22 +01:00
parent 0455fa4b74
commit d9f235ce3b
107 changed files with 11949 additions and 10740 deletions

View File

@@ -1,3 +1,5 @@
/**
* @interface
*/
@@ -20,9 +22,22 @@ StorageInterface.prototype.destroy = async function () {};
// transfer all changes of an index to the database
StorageInterface.prototype.commit = async function () {};
// get results of a term "key" with optional context "ctx"
/**
* get results of a term "key" with optional context "ctx"
* @param {!string} key
* @param {string=} ctx
* @param {number=} limit
* @param {number=} offset
* @param {boolean=} resolve
* @param {boolean=} enrich
* @return {!Promise<SearchResults|EnrichedSearchResults>}
*/
StorageInterface.prototype.get = async function () {};
// get documents stored in index (enrich result)
/**
* get documents stored in index (enrich result)
* @param {SearchResults} ids
* @return {!Promise<EnrichedSearchResults>}
*/
StorageInterface.prototype.enrich = async function () {};
// check if id exists on a specific index
StorageInterface.prototype.has = async function () {};