AbstractSearchService
admin/discounts.internal.AbstractSearchService
Implements
Properties
isDefault
anyRequiredoptions_
Record<string, unknown>RequiredAccessors
options
get
options(): Record<string
, unknown
>
Returns
Record<string
, unknown
>
Record
Record<string, unknown>Required
Record
Record<string, unknown>RequiredImplementation of
Methods
addDocuments
Abstract
addDocuments(indexName
, documents
, type
): unknown
Used to index documents by the search engine provider
Parameters
indexName
stringRequireddocuments
unknownRequiredtype
stringRequiredReturns
unknown
unknown
unknownImplementation of
createIndex
Abstract
createIndex(indexName
, options
): unknown
Used to create an index
Parameters
indexName
stringRequiredoptions
unknownRequiredReturns
unknown
unknown
unknownImplementation of
deleteAllDocuments
Abstract
deleteAllDocuments(indexName
): unknown
Used to delete all documents
Parameters
indexName
stringRequiredReturns
unknown
unknown
unknownImplementation of
ISearchService.deleteAllDocuments
deleteDocument
Abstract
deleteDocument(indexName
, document_id
): unknown
Used to delete document
Parameters
indexName
stringRequireddocument_id
string | numberRequiredReturns
unknown
unknown
unknownImplementation of
getIndex
Abstract
getIndex(indexName
): unknown
Used to get an index
Parameters
indexName
stringRequiredReturns
unknown
unknown
unknownImplementation of
replaceDocuments
Abstract
replaceDocuments(indexName
, documents
, type
): unknown
Used to replace documents
Parameters
indexName
stringRequireddocuments
unknownRequiredtype
stringRequiredReturns
unknown
unknown
unknownImplementation of
ISearchService.replaceDocuments
search
Abstract
search(indexName
, query
, options
): unknown
Used to search for a document in an index
Parameters
indexName
stringRequiredquery
null | stringRequiredoptions
unknownRequiredReturns
unknown
unknown
unknownImplementation of
updateSettings
Abstract
updateSettings(indexName
, settings
): unknown
Used to update the settings of an index
Parameters
indexName
stringRequiredsettings
unknownRequiredReturns
unknown
unknown
unknown