AbstractSearchService
Implements
Constructors
constructor
Protected
new AbstractSearchService(container
, options
)
Parameters
container
anyRequiredoptions
anyRequiredProperties
isDefault
anyRequiredoptions_
Record<string, unknown>RequiredAccessors
options
get
options(): Record<string
, unknown
>
Returns
Record<string
, unknown
>
Record
Record<string, unknown>RequiredMethods
addDocuments
Abstract
addDocuments(indexName
, documents
, type
): unknown
Used to index documents by the search engine provider
Parameters
indexName
stringRequireddocuments
unknownRequiredtype
stringRequiredReturns
unknown
unknown
unknowncreateIndex
Abstract
createIndex(indexName
, options
): unknown
Used to create an index
Parameters
indexName
stringRequiredoptions
unknownRequiredReturns
unknown
unknown
unknowndeleteAllDocuments
Abstract
deleteAllDocuments(indexName
): unknown
Used to delete all documents
Parameters
indexName
stringRequiredReturns
unknown
unknown
unknowndeleteDocument
Abstract
deleteDocument(indexName
, document_id
): unknown
Used to delete document
Parameters
indexName
stringRequireddocument_id
string | numberRequiredReturns
unknown
unknown
unknowngetIndex
Abstract
getIndex(indexName
): unknown
Used to get an index
Parameters
indexName
stringRequiredReturns
unknown
unknown
unknownreplaceDocuments
Abstract
replaceDocuments(indexName
, documents
, type
): unknown
Used to replace documents
Parameters
indexName
stringRequireddocuments
unknownRequiredtype
stringRequiredReturns
unknown
unknown
unknownsearch
Abstract
search(indexName
, query
, options
): unknown
Used to search for a document in an index
Parameters
indexName
stringRequiredquery
null | stringRequiredoptions
unknownRequiredReturns
unknown
unknown
unknownupdateSettings
Abstract
updateSettings(indexName
, settings
): unknown
Used to update the settings of an index
Parameters
indexName
stringRequiredsettings
unknownRequiredReturns
unknown
unknown
unknown