mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
MINOR: removed var_dumps()
This commit is contained in:
parent
3d90271b31
commit
7ec4ae32ad
@ -173,7 +173,6 @@ class DocumentationSearch {
|
|||||||
$count++;
|
$count++;
|
||||||
|
|
||||||
if(!is_dir($page->getPath())) {
|
if(!is_dir($page->getPath())) {
|
||||||
var_dump("Indexing ". $page->getPath());
|
|
||||||
$doc = Zend_Search_Lucene_Document_Html::loadHTML($page->getHtml());
|
$doc = Zend_Search_Lucene_Document_Html::loadHTML($page->getHtml());
|
||||||
$doc->addField(Zend_Search_Lucene_Field::Text('Title', $page->getTitle()));
|
$doc->addField(Zend_Search_Lucene_Field::Text('Title', $page->getTitle()));
|
||||||
$doc->addField(Zend_Search_Lucene_Field::Keyword('Version', $page->getVersion()));
|
$doc->addField(Zend_Search_Lucene_Field::Keyword('Version', $page->getVersion()));
|
||||||
@ -181,9 +180,6 @@ class DocumentationSearch {
|
|||||||
$doc->addField(Zend_Search_Lucene_Field::Keyword('Path', $page->getPath()));
|
$doc->addField(Zend_Search_Lucene_Field::Keyword('Path', $page->getPath()));
|
||||||
$index->addDocument($doc);
|
$index->addDocument($doc);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
var_dump("Not Indexing ". $page->getPath());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user