DeletesCommand
extends AbstractSolrCommand
in package
Console command: delete from Solr
Tags
Table of Contents
- $solr : Writer
- Solr writer
- __construct() : mixed
- Constructor
- configure() : void
- Configure the command.
- execute() : int
- Run the command.
- getIdsFromFlatFile() : array<string|int, mixed>
- Load IDs from a flat file.
- getIdsFromMarcFile() : array<string|int, mixed>
- Load IDs from a MARC file
Properties
$solr
Solr writer
protected
Writer
$solr
Methods
__construct()
Constructor
public
__construct(Writer $solr[, string|null $name = null ]) : mixed
Parameters
- $solr : Writer
-
Solr writer
- $name : string|null = null
-
The name of the command; passing null means it must be set in configure()
Return values
mixed —configure()
Configure the command.
protected
configure() : void
Return values
void —execute()
Run the command.
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
-
Input object
- $output : OutputInterface
-
Output object
Return values
int —0 for success
getIdsFromFlatFile()
Load IDs from a flat file.
protected
getIdsFromFlatFile(string $filename) : array<string|int, mixed>
Parameters
- $filename : string
-
Filename to load from
Return values
array<string|int, mixed> —getIdsFromMarcFile()
Load IDs from a MARC file
protected
getIdsFromMarcFile(string $filename, OutputInterface $output) : array<string|int, mixed>
Parameters
- $filename : string
-
MARC file
- $output : OutputInterface
-
Output object