mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
rename index action dependencies
This commit is contained in:
parent
bb948fed35
commit
ebeef559ba
4 changed files with 12 additions and 12 deletions
|
|
@ -122,7 +122,7 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"reindex":
|
"index":
|
||||||
{
|
{
|
||||||
"enabled":true
|
"enabled":true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ if ($config->cli->document->crawl->debug->level->notice)
|
||||||
|
|
||||||
foreach($index->search('')
|
foreach($index->search('')
|
||||||
->expression('random', 'rand()')
|
->expression('random', 'rand()')
|
||||||
->sort('reindex', 'desc')
|
->sort('index', 'desc')
|
||||||
->sort('time', 'asc')
|
->sort('time', 'asc')
|
||||||
->sort('rank', 'asc')
|
->sort('rank', 'asc')
|
||||||
->sort('random', 'asc')
|
->sort('random', 'asc')
|
||||||
|
|
@ -108,7 +108,7 @@ foreach($index->search('')
|
||||||
'mime' => $document->get('mime'),
|
'mime' => $document->get('mime'),
|
||||||
'rank' => $document->get('rank'),
|
'rank' => $document->get('rank'),
|
||||||
'time' => $time,
|
'time' => $time,
|
||||||
'reindex' => 0
|
'index' => 0
|
||||||
];
|
];
|
||||||
|
|
||||||
// Debug target
|
// Debug target
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ $result = $index->create(
|
||||||
[
|
[
|
||||||
'type' => 'integer'
|
'type' => 'integer'
|
||||||
],
|
],
|
||||||
'reindex' =>
|
'index' =>
|
||||||
[
|
[
|
||||||
'type' => 'integer'
|
'type' => 'integer'
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -178,8 +178,8 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process reindex request
|
// Process index request
|
||||||
if ($config->webui->reindex->enabled)
|
if ($config->webui->index->enabled)
|
||||||
{
|
{
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
|
@ -187,7 +187,7 @@ if ($config->webui->reindex->enabled)
|
||||||
{
|
{
|
||||||
$index->updateDocument(
|
$index->updateDocument(
|
||||||
[
|
[
|
||||||
'reindex' => time()
|
'index' => time()
|
||||||
],
|
],
|
||||||
$document->getId()
|
$document->getId()
|
||||||
);
|
);
|
||||||
|
|
@ -488,14 +488,14 @@ if ($config->webui->reindex->enabled)
|
||||||
<h3><?php echo _('Cache') ?></h3>
|
<h3><?php echo _('Cache') ?></h3>
|
||||||
<pre><?php echo htmlentities($document->body) ?></pre>
|
<pre><?php echo htmlentities($document->body) ?></pre>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($config->webui->reindex->enabled && $document->get('time')) { ?>
|
<?php if ($config->webui->index->enabled && $document->get('time')) { ?>
|
||||||
<h3><?php echo _('Reindex') ?></h3>
|
<h3><?php echo _('Index') ?></h3>
|
||||||
<div>
|
<div>
|
||||||
<?php if ($document->get('reindex')) { ?>
|
<?php if ($document->get('index')) { ?>
|
||||||
<?php echo sprintf(_('Request sent at %s'), date('c', $document->get('reindex'))) ?>
|
<?php echo sprintf(_('Request sent at %s'), date('c', $document->get('index'))) ?>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<img src="<?php echo $captcha->inline(100) ?>" alt="captcha" />
|
<img src="<?php echo $captcha->inline(100) ?>" alt="captcha" />
|
||||||
<form name="reindex" method="POST" action="explore.php?i=<?php echo $document->getId() ?>">
|
<form name="index" method="POST" action="explore.php?i=<?php echo $document->getId() ?>">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
name="captcha"
|
name="captcha"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue