mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
- output list of documents
This commit is contained in:
parent
145bdb7768
commit
c3de676329
|
@ -42,7 +42,19 @@ if($settings->_enableFullSearch) {
|
||||||
else
|
else
|
||||||
require_once('LetoDMS/Lucene.php');
|
require_once('LetoDMS/Lucene.php');
|
||||||
|
|
||||||
$index = Zend_Search_Lucene::open($settings->_luceneDir);
|
$index = LetoDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||||
|
|
||||||
|
$numDocs = $index->count();
|
||||||
|
echo "<pre>";
|
||||||
|
for ($id = 0; $id < $numDocs; $id++) {
|
||||||
|
if (!$index->isDeleted($id)) {
|
||||||
|
$hit = $index->getDocument($id);
|
||||||
|
echo $hit->document_id.": ".htmlspecialchars($hit->title)."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "</pre>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$terms = $index->terms();
|
$terms = $index->terms();
|
||||||
echo "<p>".count($terms)." Terms</p>";
|
echo "<p>".count($terms)." Terms</p>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user