summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2006-05-09 11:54:05 +0000
committerwei <>2006-05-09 11:54:05 +0000
commit37cc48d6bfdc71f3cb47219ccc173ab32c4ba446 (patch)
tree595d855d499ce8ec99298fa5821dcd64eb3db78e
parent702fb4a66d473fb1ee98aaa81cd26b4813279ef8 (diff)
Update quickstart search index
-rw-r--r--buildscripts/texbuilder/build.php2
-rw-r--r--buildscripts/texbuilder/create_index.php7
-rw-r--r--buildscripts/texbuilder/prado3_quick_start.tex3
-rw-r--r--demos/quickstart/protected/index/data/_0.cfsbin328074 -> 329302 bytes
-rw-r--r--framework/3rdParty/readme.html9
5 files changed, 18 insertions, 3 deletions
diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php
index 20418248..f0556e3f 100644
--- a/buildscripts/texbuilder/build.php
+++ b/buildscripts/texbuilder/build.php
@@ -11,7 +11,7 @@ $mainTexFile = dirname(__FILE__).'/prado3_quick_start.tex';
$base = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/pages/');
//search index data directory
-$index_dir = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/index/data');
+$index_dir = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/index/data/');
//list page into chapters
diff --git a/buildscripts/texbuilder/create_index.php b/buildscripts/texbuilder/create_index.php
index db72c453..b451473d 100644
--- a/buildscripts/texbuilder/create_index.php
+++ b/buildscripts/texbuilder/create_index.php
@@ -1,7 +1,10 @@
<?php
// Create quickstart search index
-require_once (dirname(__FILE__).'/Zend/Search/Lucene.php');
+$zend_path = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/index');
+set_include_path(get_include_path().';'.$zend_path);
+require_once ('Zend/Search/Lucene.php');
+
class quickstart_index
{
@@ -31,7 +34,7 @@ class quickstart_index
//searchable text
$doc->addField(Zend_Search_Lucene_Field::Keyword('page', strtolower($headers['title'])));
- $body = strtolower($this->sanitize($headers['content']));
+ $body = strtolower($this->sanitize($headers['content'])).' '.strtolower($headers['title']);
$doc->addField(Zend_Search_Lucene_Field::Unstored('contents',$body));
$this->_index->addDocument($doc);
}
diff --git a/buildscripts/texbuilder/prado3_quick_start.tex b/buildscripts/texbuilder/prado3_quick_start.tex
index 4fc1bbd6..d55e3462 100644
--- a/buildscripts/texbuilder/prado3_quick_start.tex
+++ b/buildscripts/texbuilder/prado3_quick_start.tex
@@ -115,5 +115,8 @@ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\include{ch8}
\include{ch9}
\include{ch10}
+\include{ch11}
+\include{ch12}
+\include{ch13}
\end{document}
diff --git a/demos/quickstart/protected/index/data/_0.cfs b/demos/quickstart/protected/index/data/_0.cfs
index fe93a093..f3cb1bfb 100644
--- a/demos/quickstart/protected/index/data/_0.cfs
+++ b/demos/quickstart/protected/index/data/_0.cfs
Binary files differ
diff --git a/framework/3rdParty/readme.html b/framework/3rdParty/readme.html
index b48f5b74..c6bc491c 100644
--- a/framework/3rdParty/readme.html
+++ b/framework/3rdParty/readme.html
@@ -116,6 +116,15 @@ projects.
<td>Has "The Software shall be used for Good, not Evil." clause.</td>
</tr>
+<tr>
+ <td><a href="../../demos/quickstart/protected/index/Zend">../../demos/quickstart/protected/index/Zend</a></td>
+ <td><a href="http://framework.zend.com">Zend Framework</a></td>
+ <td><a href="../../demos/quickstart/protected/index/Zend/LICENSE.txt">BSD</a></td>
+ <td>Quickstart tutorial indexing and search is provided the Zend Lucene search implementation.</td>
+ <td>This product includes the Zend Framework, freely available at
+ http://www.zend.com</td>
+</tr>
+
</table>
</p>
</body>