mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
removed "characters" and "people" media types from incremental indexer command
This commit is contained in:
parent
15bd63fdc7
commit
cc5c12ff39
@ -26,7 +26,7 @@ class IncrementalIndexer extends Command
|
|||||||
protected function promptForMissingArgumentsUsing(): array
|
protected function promptForMissingArgumentsUsing(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'mediaType' => ['The media type to index.', 'Valid values: anime, manga, characters, people']
|
'mediaType' => ['The media type to index.', 'Valid values: anime, manga']
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ class IncrementalIndexer extends Command
|
|||||||
'failed' => $this->option('failed') ?? false
|
'failed' => $this->option('failed') ?? false
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'mediaType' => 'required|in:anime,manga,characters,people',
|
'mediaType' => 'required|in:anime,manga',
|
||||||
'delay' => 'integer|min:1',
|
'delay' => 'integer|min:1',
|
||||||
'resume' => 'bool|prohibited_with:failed',
|
'resume' => 'bool|prohibited_with:failed',
|
||||||
'failed' => 'bool|prohibited_with:resume'
|
'failed' => 'bool|prohibited_with:resume'
|
||||||
|
@ -34,7 +34,7 @@ display_help() {
|
|||||||
echo "stop Stop Jikan API"
|
echo "stop Stop Jikan API"
|
||||||
echo "validate-prereqs Validate pre-reqs installed (docker, docker-compose)"
|
echo "validate-prereqs Validate pre-reqs installed (docker, docker-compose)"
|
||||||
echo "execute-indexers Execute the indexers, which will scrape and index data from MAL. (Notice: This can take days)"
|
echo "execute-indexers Execute the indexers, which will scrape and index data from MAL. (Notice: This can take days)"
|
||||||
echo "index-incrementally Executes the incremental indexers for each media type. (anime, manga, characters, people)"
|
echo "index-incrementally Executes the incremental indexers for each media type. (anime, manga)"
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
"index-incrementally")
|
"index-incrementally")
|
||||||
echo "Indexing..."
|
echo "Indexing..."
|
||||||
$DOCKER_COMPOSE_CMD -p "$DOCKER_COMPOSE_PROJECT_NAME" exec jikan_rest php /app/artisan indexer:incremental anime manga character people
|
$DOCKER_COMPOSE_CMD -p "$DOCKER_COMPOSE_PROJECT_NAME" exec jikan_rest php /app/artisan indexer:incremental anime manga
|
||||||
echo "Indexing done!"
|
echo "Indexing done!"
|
||||||
*)
|
*)
|
||||||
echo "No command specified, displaying help"
|
echo "No command specified, displaying help"
|
||||||
|
@ -39,7 +39,7 @@ start Start Jikan API (mongodb, typesense, redis, jikan-api wor
|
|||||||
stop Stop Jikan API
|
stop Stop Jikan API
|
||||||
validate-prereqs Validate pre-reqs installed (docker, docker-compose)
|
validate-prereqs Validate pre-reqs installed (docker, docker-compose)
|
||||||
execute-indexers Execute the indexers, which will scrape and index data from MAL. (Notice: This can take days)
|
execute-indexers Execute the indexers, which will scrape and index data from MAL. (Notice: This can take days)
|
||||||
index-incrementally Executes the incremental indexers for each media type. (anime, manga, characters, people)
|
index-incrementally Executes the incremental indexers for each media type. (anime, manga)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running the indexer with the script
|
### Running the indexer with the script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user