--- displayed_sidebar: servicesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # AbstractSearchService ## Implements - [ISearchService](../interfaces/ISearchService.mdx) ## Constructors #### constructor `Protected **new AbstractSearchService**(container, options)` ##### Parameters ## Properties `", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ## Accessors #### options **options**: [object Object] ## Methods #### addDocuments `Abstract **addDocuments**(indexName, documents, type): unknown` Used to index documents by the search engine provider ##### Parameters ##### Returns `unknown` ___ #### createIndex `Abstract **createIndex**(indexName, options): unknown` Used to create an index ##### Parameters ##### Returns `unknown` ___ #### deleteAllDocuments `Abstract **deleteAllDocuments**(indexName): unknown` Used to delete all documents ##### Parameters ##### Returns `unknown` ___ #### deleteDocument `Abstract **deleteDocument**(indexName, document_id): unknown` Used to delete document ##### Parameters ##### Returns `unknown` ___ #### getIndex `Abstract **getIndex**(indexName): unknown` Used to get an index ##### Parameters ##### Returns `unknown` ___ #### replaceDocuments `Abstract **replaceDocuments**(indexName, documents, type): unknown` Used to replace documents ##### Parameters ##### Returns `unknown` ___ #### search `Abstract **search**(indexName, query, options): unknown` Used to search for a document in an index ##### Parameters ##### Returns `unknown` ___ #### updateSettings `Abstract **updateSettings**(indexName, settings): unknown` Used to update the settings of an index ##### Parameters ##### Returns `unknown`