AbstractSearchService
Implements
Properties
isDefaultanyRequiredoptions_Record<string, unknown>RequiredAccessors
options
Returns
RecordRecord<string, unknown>RequiredMethods
addDocuments
Used to index documents by the search engine provider
Parameters
indexNamestringRequiredthe index name
documentsunknownRequireddocuments array to be indexed
typestringRequiredof documents to be added (e.g: products, regions, orders, etc)
Returns
unknownunknownreturns response from search engine provider
createIndex
Used to create an index
Parameters
indexNamestringRequiredthe index name
optionsunknownRequiredthe options
Returns
unknownunknownreturns response from search engine provider
deleteAllDocuments
Used to delete all documents
Parameters
indexNamestringRequiredthe index name
Returns
unknownunknownreturns response from search engine provider
deleteDocument
Used to delete document
Parameters
indexNamestringRequiredthe index name
document_idstring | numberRequiredthe id of the document
Returns
unknownunknownreturns response from search engine provider
getIndex
Used to get an index
Parameters
indexNamestringRequiredthe index name.
Returns
unknownunknownreturns response from search engine provider
replaceDocuments
Used to replace documents
Parameters
indexNamestringRequiredthe index name.
documentsunknownRequiredarray of document objects that will replace existing documents
typestringRequiredtype of documents to be replaced (e.g: products, regions, orders, etc)
Returns
unknownunknownreturns response from search engine provider
search
Used to search for a document in an index
Parameters
indexNamestringRequiredthe index name
querynull | stringRequiredthe search query
optionsunknownRequiredany options passed to the request object other than the query and indexName - additionalOptions contain any provider specific options
Returns
unknownunknownreturns response from search engine provider
updateSettings
Used to update the settings of an index
Parameters
indexNamestringRequiredthe index name
settingsunknownRequiredsettings object
Returns
unknownunknownreturns response from search engine provider
Was this section helpful?