mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
- output list of documents
This commit is contained in:
parent
145bdb7768
commit
c3de676329
|
@ -42,7 +42,19 @@ if($settings->_enableFullSearch) {
|
|||
else
|
||||
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();
|
||||
echo "<p>".count($terms)." Terms</p>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user