dwarfhq / laravel-meilitools

Additional tools for Laravel Scout 9+ integration with MeiliSearch
MIT License
99 stars 9 forks source link

add meili:index:list command #3

Closed macbookandrew closed 1 year ago

macbookandrew commented 2 years ago

This adds a new meili:index:list command to print information about all the available indexes (indices):

$ php artisan meili:index:list
+----------+-------------------------------------------------+
| Setting  | Value                                           |
+----------+-------------------------------------------------+
| Branches | array (                                         |
|          |   'uid' => 'branches',                          |
|          |   'primaryKey' => 'id',                         |
|          |   'createdAt' => '2022-09-15T18:51:25.724448Z', |
|          |   'updatedAt' => '2022-09-15T18:51:25.852447Z', |
|          |   'numberOfDocuments' => 1,                     |
|          |   'isIndexing' => false,                        |
|          | )                                               |
| Products | array (                                         |
|          |   'uid' => 'products',                          |
|          |   'primaryKey' => NULL,                         |
|          |   'createdAt' => '2022-08-31T16:39:52.075667Z', |
|          |   'updatedAt' => '2022-08-31T17:23:53.909127Z', |
|          |   'numberOfDocuments' => 0,                     |
|          |   'isIndexing' => false,                        |
|          | )                                               |
+----------+-------------------------------------------------+
FrittenKeeZ commented 2 years ago

@macbookandrew Sorry for the delay, but I've been on vacation and noticed your PRs yesterday - I'm having a look at them :)