Skip to content
Snippets Groups Projects
Verified Commit 2bce16f4 authored by Damien's avatar Damien
Browse files

FEAT indexBan

parent 6757b8ea
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ $index->setMaxBufferedDocs(1000); ...@@ -20,7 +20,7 @@ $index->setMaxBufferedDocs(1000);
$row = 1; $row = 1;
foreach ($filesBan as $fileBan) { foreach ($filesBan as $fileBan) {
if (!in_array($fileBan, ['.', '..']) && ($handle = fopen($banDirectory . $fileBan, "r")) !== false) { if (!in_array($fileBan, ['.', '..', '.gitkeep']) && ($handle = fopen($banDirectory . $fileBan, "r")) !== false) {
echo "$fileBan\n"; echo "$fileBan\n";
$duplicateAddresses = []; $duplicateAddresses = [];
$currentCity = ''; $currentCity = '';
...@@ -62,6 +62,7 @@ foreach ($filesBan as $fileBan) { ...@@ -62,6 +62,7 @@ foreach ($filesBan as $fileBan) {
fclose($handle); fclose($handle);
} }
} }
echo date('c');
$index->commit(); $index->commit();
$index->optimize(); $index->optimize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment