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/lu cene/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.j ar:/misc/lucene/lucene-2.0.0/lucene-demo s-2.0.0.jar
export PATH=$PATH:$JAVA_HOME:$ANT_HOME/bin:$CLA SSPATH
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/jav a/trunk/src/jsp/results.jsp?revision=410 678
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/lu
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.j
export PATH=$PATH:$JAVA_HOME:$ANT_HOME/bin:$CLA
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/jav

Comments