mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
more condensed output of terms and documents
This commit is contained in:
parent
6093dd0c28
commit
c49061ea15
|
@ -43,27 +43,35 @@ class SeedDMS_View_IndexInfo extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentStart();
|
$this->contentStart();
|
||||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||||
$this->contentHeading(getMLText("fulltext_info"));
|
$this->contentHeading(getMLText("fulltext_info"));
|
||||||
$this->contentContainerStart();
|
|
||||||
|
|
||||||
$numDocs = $index->count();
|
$numDocs = $index->count();
|
||||||
echo "<pre>";
|
echo "<legend>".$numDocs." ".getMLText('documents')."</legend>";
|
||||||
|
$this->contentContainerStart();
|
||||||
for ($id = 0; $id < $numDocs; $id++) {
|
for ($id = 0; $id < $numDocs; $id++) {
|
||||||
if (!$index->isDeleted($id)) {
|
if (!$index->isDeleted($id)) {
|
||||||
$hit = $index->getDocument($id);
|
$hit = $index->getDocument($id);
|
||||||
echo $hit->document_id.": ".htmlspecialchars($hit->title)."\n";
|
echo "<span title=\"".$hit->document_id."\">".htmlspecialchars($hit->title)."</span>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "</pre>";
|
$this->contentContainerEnd();
|
||||||
|
|
||||||
$terms = $index->terms();
|
$terms = $index->terms();
|
||||||
echo "<p>".count($terms)." Terms</p>";
|
echo "<legend>".count($terms)." Terms</legend>";
|
||||||
echo "<pre>";
|
// echo "<pre>";
|
||||||
|
$field = '';
|
||||||
foreach($terms as $term) {
|
foreach($terms as $term) {
|
||||||
echo htmlspecialchars($term->field).":".htmlspecialchars($term->text)."\n";
|
if($field != $term->field) {
|
||||||
}
|
if($field)
|
||||||
echo "</pre>";
|
|
||||||
|
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
echo "<h5>".htmlspecialchars($term->field)."</h5>";
|
||||||
|
$this->contentContainerStart();
|
||||||
|
$field = $term->field;
|
||||||
|
}
|
||||||
|
echo htmlspecialchars($term->text)."\n";
|
||||||
|
}
|
||||||
|
$this->contentContainerEnd();
|
||||||
|
// echo "</pre>";
|
||||||
|
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user