Browse Source

fix cleanup query

main
yggverse 9 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) @@ -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(
$result = $index->deleteDocuments(
$index->search(
sprintf(
'@url "%s"',
$condition
)
);
$result = $index->deleteDocuments(
$query
)
);
echo sprintf(

Loading…
Cancel
Save