import Search from 'node-collections-boilerplate/node-collections-boilerplate-nahid/search/Search.js'
Search
Constructor Summary
Public Constructor | ||
public |
constructor(options: StorageOptions) |
Member Summary
Public Members | ||
public |
Name of collection. |
|
public |
Connection string for search |
|
public |
primaryKey: * Id field of records |
Method Summary
Public Methods | ||
public |
async connect() connect to search system |
|
public abstract |
async createRecord(record: *) |
|
public abstract |
async deleteRecord(record: *) |
|
public abstract |
async initialise(searchMeta: *, records: *) Initialised search system with initial set of records |
|
public abstract |
async searchRecords(query: *) |
|
public abstract |
async updateRecord(record: *) |
Public Constructors
public constructor(options: StorageOptions) source
Params:
Name | Type | Attribute | Description |
options | StorageOptions | see fields |
Public Members
public collectionName: * source
Name of collection. Derived from connection string if there is # based seperation.
Public Methods
public abstract async createRecord(record: *) source
Params:
Name | Type | Attribute | Description |
record | * |
public abstract async deleteRecord(record: *) source
Params:
Name | Type | Attribute | Description |
record | * |
public abstract async initialise(searchMeta: *, records: *) source
Initialised search system with initial set of records
Params:
Name | Type | Attribute | Description |
searchMeta | * | ||
records | * |
public abstract async searchRecords(query: *) source
Params:
Name | Type | Attribute | Description |
query | * |
public abstract async updateRecord(record: *) source
Params:
Name | Type | Attribute | Description |
record | * |