Skip to main content
Skip to main content

SearchService

constructor

Parameters

__namedParametersInjectedDependenciesRequired
optionsanyRequired

Properties

isDefaultbooleanRequired

Default: true

logger_LoggerRequired
options_Record<string, unknown>Required

Methods

createIndex

Parameters

indexNamestringRequired
optionsunknownRequired

Returns

PromisePromise<void>Required

getIndex

Parameters

indexNamestringRequired

Returns

PromisePromise<void>Required

addDocuments

Parameters

indexNamestringRequired
documentsunknownRequired
typestringRequired

Returns

PromisePromise<void>Required

replaceDocuments

Parameters

indexNamestringRequired
documentsunknownRequired
typestringRequired

Returns

PromisePromise<void>Required

deleteDocument

Parameters

indexNamestringRequired
document_idstring | numberRequired

Returns

PromisePromise<void>Required

deleteAllDocuments

Parameters

indexNamestringRequired

Returns

PromisePromise<void>Required

Parameters

indexNamestringRequired
queryunknownRequired
optionsunknownRequired

Returns

PromisePromise<object>Required

updateSettings

Parameters

indexNamestringRequired
settingsunknownRequired

Returns

PromisePromise<void>Required
Was this section helpful?