Host FlexSearch
This commit is contained in:
35
paige/node_modules/flexsearch/dist/module-debug/engine.js
generated
vendored
Normal file
35
paige/node_modules/flexsearch/dist/module-debug/engine.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
import { searchCache } from "./cache";
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @abstract
|
||||
*/
|
||||
|
||||
function Engine(index) {
|
||||
|
||||
//if(this.constructor === Engine){
|
||||
if (this instanceof Engine) {
|
||||
|
||||
throw new Error("Can't instantiate abstract class!");
|
||||
}
|
||||
|
||||
|
||||
index.prototype.searchCache = searchCache;
|
||||
|
||||
|
||||
index.prototype.addAsync = addAsync;
|
||||
index.prototype.appendAsync = appendAsync;
|
||||
index.prototype.searchAsync = searchAsync;
|
||||
index.prototype.updateAsync = updateAsync;
|
||||
index.prototype.removeAsync = removeAsync;
|
||||
}
|
||||
|
||||
Engine.prototype.searchCache = searchCache;
|
||||
|
||||
|
||||
Engine.prototype.addAsync = addAsync;
|
||||
Engine.prototype.appendAsync = appendAsync;
|
||||
Engine.prototype.searchAsync = searchAsync;
|
||||
Engine.prototype.updateAsync = updateAsync;
|
||||
Engine.prototype.removeAsync = removeAsync;
|
Reference in New Issue
Block a user