mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
add index settings support
This commit is contained in:
parent
4aadb7f642
commit
192e45103d
8 changed files with 41 additions and 16 deletions
|
|
@ -32,7 +32,7 @@ $search = new \Manticoresearch\Search(
|
|||
);
|
||||
|
||||
$search->setIndex(
|
||||
$config->manticore->index->document
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
|
||||
$search->match(
|
||||
|
|
@ -51,7 +51,7 @@ $search->limit(
|
|||
|
||||
// Init index
|
||||
$index = $client->index(
|
||||
$config->manticore->index->document
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
|
||||
// Begin queue
|
||||
|
|
@ -182,7 +182,7 @@ foreach($search->get() as $document)
|
|||
|
||||
echo sprintf(
|
||||
'index "%s" updated: %s %s' . PHP_EOL,
|
||||
$config->manticore->index->document,
|
||||
$config->manticore->index->document->name,
|
||||
print_r(
|
||||
$result,
|
||||
true
|
||||
|
|
@ -268,7 +268,7 @@ foreach($search->get() as $document)
|
|||
echo sprintf(
|
||||
'add "%s" to "%s"' . PHP_EOL,
|
||||
$url,
|
||||
$config->manticore->index->document
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue