1. Search service

Search commands and pipelines

Version:

The following table describes the commands and pipelines for index and document management via the Search service:

Command/PipelineDescription
CreateSearchIndexCommand

CreateSearchIndexPipeline
Creates an index based on the IndexablePolicy and SearchScopePolicy.
DeleteSearchIndexCommand

DeleteSearchIndexPipeline
Deletes an index (specified by name).
GetSearchIndexCommand

GetSearchIndexPipeline
Retrieves an index (specified by name).
InitializeSearchIndexCommand

InitializeSearchIndexPipeline
Initializes an index (specified by name).
ListSearchIndexesCommand

ListSearchIndexesPipeline
Lists all indexes in the system.
SearchCommand

SearchPipeline
Searches documents in an index.
SearchEntitiesCommandSearches Commerce entities using the provider agnostic generic search framework. Executes the IFindEntityPipeline pipeline.
GenericSearchCommand

GenericSearchPipeline
Executes a provider agnostic search.
UpdateSearchIndexCommand

UpdateSearchIndexPipeline
Updates an index based on the IndexablePolicy and SearchScopePolicy.
AddDocumentsToIndexPipelineAdds documents to an index.
DeleteDocumentsFromIndexPipelineIdentifies documents to be deleted from index.
CountDocumentsFromIndexPipelineCounts the number of documents contained in the index.
DeleteIndexDocumentsMinionPipelineRemoves documents from an index for entities that have been deleted from the system. Receives: SearchIndexMinionArgument Returns:  IEnumerable<IndexingResult>
FullIndexMinionPipelineUsed by the Full Index Minion to process entities. Receives: SearchIndexMinionArgument Returns: IEnumerable<IndexingResult>
IncrementalIndexPipelineUsed by the Incremental Index Minion to process entities. Receives: SearchIndexMinionArgument Returns: IEnumerable<IndexingResult>
PrepareDeleteIndexDocumentsMinionPipelinePrepares for deletion of index documents. Receives: SearchIndexArgument Returns: bool
PrepareFullIndexMinionPipelineBefore processing any entity, checks if the index exists. If the index exists, the pipeline deletes it, and then recreates it. If the index does not exist, it creates it.

Receives: SearchIndexArgument

Returns: bool
PrepareIncrementalIndexMinionPipelineBefore processing any entity, checks if the index exists. If the index exists, the pipeline deletes it, and then recreates it. If the index does not exist, it creates. Receives: SearchIndexArgument Returns: bool
If you have suggestions for improving this article, let us know!