Home

Lucene Web Demo Insatallation Step by Step

Lucene Step by Step Installation:

Its for the Lucene web demo step by step installation and running process.

1) Download all the stuff needed for it. i.e
the latest version is 2.0-0 download it from:
http://www.apache.org/dyn/closer.cgi/lucene/java/
Jdk from http://java.sun.com
Tomcat from : http://tomcat.apache.org
Ant from: http://ant.apache.org

2)Installation of the binaries:
extract all the binaries.
run jdk through ./jdk-----.bin
install it at /opt/

extract tomcat at /usr/local/tomcat

extract ant at /opt
extract lucene at /opt

3) Setting Variables and Classpaht, env :
set
export JAVA_HOME=/opt/SUNWappserver/jdk/
export ANT_HOME=/opt/lucene/apache-ant-1.6.5
export CLASSPATH = /opt/lucene/lucene-2.0.0/lucene-core-2.0.0.jar:/misc/lucene/lucene-2.0.0/lucene-demos-2.0.0.jar
export PATH=$PATH:$JAVA_HOME:$ANT_HOME/bin:$CLASSPATH

4) Installation:
Set port for JDK other than 8080, as tomcat runs at 8080 or set willfully.

$tomcatpath/bin/startup.sh
deploy *.war file of lucene in its folder to the WEBAPPS in tomcat and restart tomcat by
$tomcatpath/bin/shutdown.sh then startup.sh

Build Index for Lucene:
************************
java org.apache.lucene.demo.IndexFiles {full-path-to-lucene}/src
java org.apache.lucene.demo.SearchFiles (for command line searching text)

ctlr+C

java org.apache.lucene.demo.IndexHTML -create -index fullpathtolucenewithinde documentswhomindexshouldbecreated

edit configuration.jsp in tomcat webapps luceneweb directory and put the rightpath where you have createdind

restart tomcat.

4) Test
http://localhost:8080/luceneweb
and start searching

if errors come out then path up you results.jsp in the luceneweb dir by this url:
http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/results.jsp?revision=410678

Comments

February 2008

S M T W T F S
     12
3456789
10111213141516
17181920212223
242526272829 
Powered by LiveJournal.com