Browse Source

fix cleanup query

main
yggverse 10 months ago
parent
commit
dd914e0e1b
  1. 14
      src/cli/document/clean.php

14
src/cli/document/clean.php

@ -46,17 +46,13 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition)
$condition $condition
); );
$query = new \Manticoresearch\Query(); $result = $index->deleteDocuments(
$index->search(
$query->add( sprintf(
'url', '@url "%s"',
@\Manticoresearch\Utils::escape(
$condition $condition
) )
); )
$result = $index->deleteDocuments(
$query
); );
echo sprintf( echo sprintf(

Loading…
Cancel
Save