diff --git a/src/cli/document/clean.php b/src/cli/document/clean.php index a5866b2..29cd21b 100644 --- a/src/cli/document/clean.php +++ b/src/cli/document/clean.php @@ -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(