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:
19
dist/module-debug/db/interface.js
vendored
19
dist/module-debug/db/interface.js
vendored
@@ -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 () {};
|
||||
|
Reference in New Issue
Block a user