mirror of
https://github.com/YGGverse/Yo.git
synced 2025-03-13 05:41:18 +00:00
fix cleanup query
This commit is contained in:
parent
25fed9f1dc
commit
dd914e0e1b
@ -46,17 +46,13 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition)
|
||||
$condition
|
||||
);
|
||||
|
||||
$query = new \Manticoresearch\Query();
|
||||
|
||||
$query->add(
|
||||
'url',
|
||||
@\Manticoresearch\Utils::escape(
|
||||
$condition
|
||||
)
|
||||
);
|
||||
|
||||
$result = $index->deleteDocuments(
|
||||
$query
|
||||
$index->search(
|
||||
sprintf(
|
||||
'@url "%s"',
|
||||
$condition
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
echo sprintf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user