mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-01 02:05:29 +00:00
add index settings support
This commit is contained in:
parent
4aadb7f642
commit
192e45103d
8 changed files with 41 additions and 16 deletions
|
|
@ -20,7 +20,7 @@ $client = new \Manticoresearch\Client(
|
|||
|
||||
// Init index
|
||||
$index = $client->index(
|
||||
$config->manticore->index->document
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
|
||||
// Check URL for exist
|
||||
|
|
@ -33,7 +33,7 @@ if ($result->getTotal())
|
|||
echo sprintf(
|
||||
'URL "%s" already exists in "%s" index!' . PHP_EOL,
|
||||
$argv[1],
|
||||
$config->manticore->index->document
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
|
||||
exit;
|
||||
|
|
@ -49,7 +49,7 @@ $result = $index->addDocument(
|
|||
echo sprintf(
|
||||
'URL "%s" added to "%s" index: %s' . PHP_EOL,
|
||||
$argv[1],
|
||||
$config->manticore->index->document,
|
||||
$config->manticore->index->document->name,
|
||||
print_r(
|
||||
$result,
|
||||
true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue