Browse Source

fix cleanup query

main
yggverse 9 months ago
parent
commit
dd914e0e1b
  1. 16
      src/cli/document/clean.php

16
src/cli/document/clean.php

@ -46,17 +46,13 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition) @@ -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…
Cancel
Save