Component installation for tikiwiki document indexing
and retrieving using apache-lucene
======================================================
Download opensource javabridge
(http://sourceforge.net/projects/php-java-bridge) and
install it as a j2ee application in tomcat
------------------------------
Copy java-x86-windows.dll (in webapps\JavaBridge\WEB-
INF\cgi) in php\ext and rename it php_java.dll
(overwriting the old php_java.dll)
------------------------------
Edit php.ini:
enable java extension:
extension=php_java.dll
[java]
java.hosts=127.0.0.1:8081
;<-- tomcat address and port)
java.servlet=On
java.log_level=3
---------------------------
In tikiwiki activate File gallery (check admin home-
>feature->File galleries)
and set "Use dir to store files" (admin home->File
galleries) on a specifici dir (eg.: d:/lucenedir194)
---------
unzip insielJars.zip in Java\jre1.5.0_01\lib\ext
the following jars are installed:
open source:
highlighter-dev.jar
poi-2.5.1-final-20040804.jar
log4j-1.2.9.jar
lucene-1.9-rc1-dev.jar
PDFBox-0.7.1.jar
tm-extractors-0.4.jar
My index/search manager:
IndexSearchManager.jar
------------
Modify some parameters in php.ini:
max_execution_time = 300 ; Maximum execution time
of each script, in seconds
upload_max_filesize = 200M
post_max_size = 80M
---------------------
Unzip insielSearch.zip in tikiwiki root
php files replaced
- modifier.iconify.php
(tikiwiki_home/lib/smarty_tiki/)
- tiki-upload_file.php (tikiwiki_home/)
- tiki-searchindex.php (tikiwiki_home/)
- tiki-searchresults.php (tikiwiki_home/)
- filegallib.php (tikiwiki_home/lib/filegals)
- tiki-searchresults.tpl (tikiwiki_home/templates)
- tikiwiki_home/lib/lucene new folder
- tikiwiki_home/lib/misc new folder
- mod-search_all_box.tpl
(tikiwiki_home/templates/modules) new
In tiki-home/img/icn
-Articolo.gif
-Blog.gif
-FAQ.gif
-Galleria Link.gif
-Messaggio di blog.gif
-Novità.gif
-Wiki.gif
In tiki-home/img/icons
-fo.gif
-ofo.gif
------------------------
In tikiwiki assign a new module (search_all_box)
Logged In: YES
user_id=1500595
can upload insielJars.zip ... download other jars from web
Logged In: YES
user_id=1500595
Sorry ... CANNOT upload insielJars.zip due to size
limits...
jars uploaded:
highlighter-dev.jar
IndexSearchManager.jar
Download the other from web (apache site. ecc)