implement yggo db migration cli tool

This commit is contained in:
ghost 2023-11-25 04:44:07 +02:00
parent 875382c56e
commit 3448eb85f7
2 changed files with 189 additions and 1 deletions

View file

@ -78,4 +78,23 @@ php src/cli/document/crawl.php
php src/cli/document/search.php '@title "*"' [limit]
```
* `query` - required
* `limit` - optional search results limit
* `limit` - optional search results limit
##### Migration
###### YGGo
Import index from YGGo database
```
php src/cli/yggo/import.php 'host' 'port' 'user' 'password' 'database' [unique]
```
Source DB fields required:
* `host`
* `port`
* `user`
* `password`
* `database`
* `unique` - optional, check for unique URL (takes more time)