import Processor from 'information-retrieval-boilerplate/node-information-retrieval-boilerplate/src/processors/Processor.js'
Processor
A Processor
Constructor Summary
Public Constructor | ||
public |
constructor(config: object) Construct a new Processor |
Method Summary
Public Methods | ||
public |
async addDocuments(system: *, documentIndices: *, documents: *) for classes with bind 'add' |
|
public |
async processQuery(system: *, query: *) for classes with bind 'query' |
|
public |
async processResults(system: *, query: *, results: *) for classes with bind 'results' |
|
public |
async removeDocuments(system: *, documentIndices: *) for classes with bind 'remove' |
|
public |
Dump current index state. |
Public Constructors
Public Members
public bind: * source
Public Methods
public async addDocuments(system: *, documentIndices: *, documents: *) source
for classes with bind 'add'
Params:
Name | Type | Attribute | Description |
system | * | ||
documentIndices | * | ||
documents | * |
public async processQuery(system: *, query: *) source
for classes with bind 'query'
Params:
Name | Type | Attribute | Description |
system | * | ||
query | * |
public async processResults(system: *, query: *, results: *) source
for classes with bind 'results'
Params:
Name | Type | Attribute | Description |
system | * | ||
query | * | ||
results | * |
public async removeDocuments(system: *, documentIndices: *) source
for classes with bind 'remove'
Params:
Name | Type | Attribute | Description |
system | * | ||
documentIndices | * |