2007-06-26 00:26:07 -04:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2006-11-26 19:03:13 -05:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta content="Apache Forrest" name="Generator">
|
2007-06-26 00:26:07 -04:00
|
|
|
<meta name="Forrest-version" content="0.8">
|
2009-06-24 12:20:00 -04:00
|
|
|
<meta name="Forrest-skin-name" content="lucene">
|
2006-11-26 19:03:13 -05:00
|
|
|
<title>
|
|
|
|
Apache Lucene - Building and Installing the Basic Demo
|
|
|
|
</title>
|
|
|
|
<link type="text/css" href="skin/basic.css" rel="stylesheet">
|
|
|
|
<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">
|
|
|
|
<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">
|
|
|
|
<link type="text/css" href="skin/profile.css" rel="stylesheet">
|
|
|
|
<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>
|
|
|
|
<link rel="shortcut icon" href="images/favicon.ico">
|
|
|
|
</head>
|
|
|
|
<body onload="init()">
|
|
|
|
<script type="text/javascript">ndeSetTextSize();</script>
|
|
|
|
<div id="top">
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|breadtrail
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="breadtrail">
|
2006-12-02 07:11:45 -05:00
|
|
|
<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|header
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="header">
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|start group logo
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="grouplogo">
|
2006-12-02 07:11:45 -05:00
|
|
|
<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end group logo
|
|
|
|
+-->
|
|
|
|
<!--+
|
|
|
|
|start Project Logo
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="projectlogo">
|
|
|
|
<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in
|
|
|
|
Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>
|
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end Project Logo
|
|
|
|
+-->
|
|
|
|
<!--+
|
|
|
|
|start Search
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="searchbox">
|
2009-06-24 12:20:00 -04:00
|
|
|
<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">
|
2009-07-09 09:06:51 -04:00
|
|
|
<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene">
|
2007-06-26 00:26:07 -04:00
|
|
|
<input name="Search" value="Search" type="submit">
|
2006-11-26 19:03:13 -05:00
|
|
|
</form>
|
2009-06-24 12:20:00 -04:00
|
|
|
<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>
|
|
|
|
</div>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end search
|
|
|
|
+-->
|
|
|
|
<!--+
|
|
|
|
|start Tabs
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<ul id="tabs">
|
|
|
|
<li class="current">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2007-06-26 00:26:07 -04:00
|
|
|
<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</li>
|
2008-01-11 18:21:01 -05:00
|
|
|
<li class="current">
|
2009-11-16 10:28:29 -05:00
|
|
|
<a class="selected" href="index.html">Lucene 3.1 Documentation</a>
|
2008-01-11 18:21:01 -05:00
|
|
|
</li>
|
2006-11-26 19:03:13 -05:00
|
|
|
</ul>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end Tabs
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="main">
|
|
|
|
<div id="publishedStrip">
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|start Subtabs
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div id="level2tabs"></div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end Endtabs
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<script type="text/javascript"><!--
|
2007-06-26 00:26:07 -04:00
|
|
|
document.write("Last Published: " + document.lastModified);
|
2006-11-26 19:03:13 -05:00
|
|
|
// --></script>
|
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|breadtrail
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="breadtrail">
|
2007-06-26 00:26:07 -04:00
|
|
|
|
2006-11-26 19:03:13 -05:00
|
|
|
|
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|start Menu, mainarea
|
|
|
|
+-->
|
|
|
|
<!--+
|
|
|
|
|start Menu
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div id="menu">
|
2008-01-11 18:21:01 -05:00
|
|
|
<div onclick="SwitchMenu('menu_1.1', 'skin/')" id="menu_1.1Title" class="menutitle">Documentation</div>
|
2006-11-26 19:03:13 -05:00
|
|
|
<div id="menu_1.1" class="menuitemgroup">
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="index.html">Overview</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
2009-09-08 20:00:17 -04:00
|
|
|
<div onclick="SwitchMenu('menu_1.1.2', 'skin/')" id="menu_1.1.2Title" class="menutitle">Changes</div>
|
2008-01-11 18:21:01 -05:00
|
|
|
<div id="menu_1.1.2" class="menuitemgroup">
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="menuitem">
|
2009-09-08 20:00:17 -04:00
|
|
|
<a href="changes/Changes.html">Core</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
|
|
|
<a href="changes/Contrib-Changes.html">Contrib</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>
|
|
|
|
<div id="menu_1.1.3" class="menuitemgroup">
|
|
|
|
<div class="menuitem">
|
2009-03-13 17:20:06 -04:00
|
|
|
<a href="api/all/index.html">All</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/core/index.html">Core</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/demo/index.html">Demo</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
2009-09-08 20:00:17 -04:00
|
|
|
<div onclick="SwitchMenu('menu_1.1.3.4', 'skin/')" id="menu_1.1.3.4Title" class="menutitle">Contrib</div>
|
|
|
|
<div id="menu_1.1.3.4" class="menuitemgroup">
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-analyzers/index.html">Analyzers</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-07-23 14:32:12 -04:00
|
|
|
<a href="api/contrib-smartcn/index.html">Smart Chinese Analyzer</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-ant/index.html">Ant</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-bdb/index.html">Bdb</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-bdb-je/index.html">Bdb-je</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-benchmark/index.html">Benchmark</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-07-09 09:06:51 -04:00
|
|
|
<a href="api/contrib-fast-vector-highlighter/index.html">Fast Vector Highlighter</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-highlighter/index.html">Highlighter</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-12-09 08:58:55 -05:00
|
|
|
<a href="api/contrib-icu/index.html">ICU</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-10-11 13:28:23 -04:00
|
|
|
<a href="api/contrib-instantiated/index.html">Instantiated</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-lucli/index.html">Lucli</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-memory/index.html">Memory</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
2007-12-04 07:56:22 -05:00
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-misc/index.html">Miscellaneous</a>
|
2007-12-04 07:56:22 -05:00
|
|
|
</div>
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-queries/index.html">Queries</a>
|
2007-12-04 07:56:22 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-08-03 00:04:08 -04:00
|
|
|
<a href="api/contrib-queryparser/index.html">Query Parser Framework</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-regex/index.html">Regex</a>
|
2007-12-04 07:56:22 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-06-15 08:45:05 -04:00
|
|
|
<a href="api/contrib-remote/index.html">Remote</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-05-19 01:11:26 -04:00
|
|
|
<a href="api/contrib-spatial/index.html">Spatial</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-spellchecker/index.html">Spellchecker</a>
|
2006-12-02 07:11:45 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-surround/index.html">Surround</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-swing/index.html">Swing</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-13 13:36:22 -05:00
|
|
|
<a href="api/contrib-wikipedia/index.html">Wikipedia</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-wordnet/index.html">Wordnet</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="api/contrib-xml-query-parser/index.html">XML Query Parser</a>
|
2006-12-09 11:32:22 -05:00
|
|
|
</div>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-11-16 03:29:52 -05:00
|
|
|
<a href="systemrequirements.html">System Requirements</a>
|
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="contributions.html">Contributions</a>
|
2007-02-18 09:24:11 -05:00
|
|
|
</div>
|
2007-06-19 04:00:51 -04:00
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="fileformats.html">File Formats</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="gettingstarted.html">Getting Started</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2009-09-06 21:00:21 -04:00
|
|
|
<a href="lucene-contrib/index.html">Lucene Contrib</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="queryparsersyntax.html">Query Syntax</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="scoring.html">Scoring</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
<div class="menuitem">
|
2008-01-11 18:21:01 -05:00
|
|
|
<a href="http://wiki.apache.org/lucene-java">Wiki</a>
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="credit"></div>
|
|
|
|
<div id="roundbottom">
|
|
|
|
<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|alternative credits
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div id="credit2"></div>
|
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end Menu
|
|
|
|
+-->
|
|
|
|
<!--+
|
|
|
|
|start content
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div id="content">
|
|
|
|
<div title="Portable Document Format" class="pdflink">
|
|
|
|
<a class="dida" href="demo3.pdf"><img alt="PDF -icon" src="skin/images/pdfdoc.gif" class="skin"><br>
|
|
|
|
PDF</a>
|
|
|
|
</div>
|
|
|
|
<h1>
|
|
|
|
Apache Lucene - Building and Installing the Basic Demo
|
|
|
|
</h1>
|
|
|
|
<div id="minitoc-area">
|
|
|
|
<ul class="minitoc">
|
|
|
|
<li>
|
|
|
|
<a href="#About this Document">About this Document</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#About the Demos">About the Demos</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#Indexing Files">Indexing Files</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#Deploying the Demos">Deploying the Demos</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#Configuration">Configuration</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#Running the Demos">Running the Demos</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#About the code...">About the code...</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N10013"></a><a name="About this Document"></a>
|
|
|
|
<h2 class="boxed">About this Document</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p>
|
|
|
|
This document is intended as a "getting started" guide to installing and running the Lucene
|
|
|
|
web application demo. This guide assumes that you have read the information in the previous two
|
|
|
|
examples. We'll use Tomcat as our reference web container. These demos should work with nearly any
|
|
|
|
container, but you may have to adapt them appropriately.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N1001C"></a><a name="About the Demos"></a>
|
|
|
|
<h2 class="boxed">About the Demos</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p>
|
|
|
|
The Lucene Web Application demo is a template web application intended for deployment on Tomcat or a
|
|
|
|
similar web container. It's NOT designed as a "best practices" implementation by ANY means. It's
|
|
|
|
more of a "hello world" type Lucene Web App. The purpose of this application is to demonstrate
|
|
|
|
Lucene. With that being said, it should be relatively simple to create a small searchable website
|
|
|
|
in Tomcat or a similar application server.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N10025"></a><a name="Indexing Files"></a>
|
|
|
|
<h2 class="boxed">Indexing Files</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p> Once you've gotten this far you're probably itching to go. Let's start by creating the index
|
|
|
|
you'll need for the web examples. Since you've already set your CLASSPATH in the previous examples,
|
|
|
|
all you need to do is type:
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
java org.apache.lucene.demo.IndexHTML -create -index {index-dir} ..
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
You'll need to do this from a (any) subdirectory of your <span class="codefrag">{tomcat}/webapps</span> directory
|
|
|
|
(make sure you didn't leave off the <span class="codefrag">..</span> or you'll get a null pointer exception).
|
|
|
|
<span class="codefrag">{index-dir}</span> should be a directory that Tomcat has permission to read and write, but is
|
|
|
|
outside of a web accessible context. By default the webapp is configured to look in
|
|
|
|
<span class="codefrag">/opt/lucene/index</span> for this index.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N1003D"></a><a name="Deploying the Demos"></a>
|
|
|
|
<h2 class="boxed">Deploying the Demos</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p>Located in your distribution directory you should see a war file called
|
|
|
|
<span class="codefrag">luceneweb.war</span>. If you're working with a Subversion checkout, this will be under the
|
|
|
|
<span class="codefrag">build</span> subdirectory. Copy this to your <span class="codefrag">{tomcat-home}/webapps</span> directory.
|
|
|
|
You may need to restart Tomcat. </p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N1004F"></a><a name="Configuration"></a>
|
|
|
|
<h2 class="boxed">Configuration</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p> From your Tomcat directory look in the <span class="codefrag">webapps/luceneweb</span> subdirectory. If it's not
|
|
|
|
present, try browsing to <span class="codefrag">http://localhost:8080/luceneweb</span> (which causes Tomcat to deploy
|
|
|
|
the webapp), then look again. Edit a file called <span class="codefrag">configuration.jsp</span>. Ensure that the
|
|
|
|
<span class="codefrag">indexLocation</span> is equal to the location you used for your index. You may also customize
|
|
|
|
the <span class="codefrag">appTitle</span> and <span class="codefrag">appFooter</span> strings as you see fit. Once you have finished
|
|
|
|
altering the configuration you may need to restart Tomcat. You may also wish to update the war file
|
|
|
|
by typing <span class="codefrag">jar -uf luceneweb.war configuration.jsp</span> from the <span class="codefrag">luceneweb</span>
|
|
|
|
subdirectory. (The -u option is not available in all versions of jar. In this case recreate the
|
|
|
|
war file).
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N10070"></a><a name="Running the Demos"></a>
|
|
|
|
<h2 class="boxed">Running the Demos</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p>Now you're ready to roll. In your browser set the url to
|
|
|
|
<span class="codefrag">http://localhost:8080/luceneweb</span> enter <span class="codefrag">test</span> and the number of items per
|
|
|
|
page and press search.</p>
|
|
|
|
<p>You should now be looking either at a number of results (provided you didn't erase the Tomcat
|
|
|
|
examples) or nothing. If you get an error regarding opening the index, then you probably set the
|
|
|
|
path in <span class="codefrag">configuration.jsp</span> incorrectly or Tomcat doesn't have permissions to the index
|
|
|
|
(or you skipped the step of creating it). Try other search terms. Depending on the number of items
|
|
|
|
per page you set and results returned, there may be a link at the bottom that says <b>More
|
|
|
|
Results>></b>; clicking it takes you to subsequent pages. </p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a name="N10088"></a><a name="About the code..."></a>
|
|
|
|
<h2 class="boxed">About the code...</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p>
|
|
|
|
If you want to know more about how this web app works or how to customize it then <a href="demo4.html">read on>>></a>.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end content
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="clearboth"> </div>
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|start bottomstrip
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
<div class="lastmodified">
|
|
|
|
<script type="text/javascript"><!--
|
2007-06-26 00:26:07 -04:00
|
|
|
document.write("Last Published: " + document.lastModified);
|
2006-11-26 19:03:13 -05:00
|
|
|
// --></script>
|
|
|
|
</div>
|
|
|
|
<div class="copyright">
|
|
|
|
Copyright ©
|
|
|
|
2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
|
|
|
|
</div>
|
2007-06-26 00:26:07 -04:00
|
|
|
<!--+
|
|
|
|
|end bottomstrip
|
|
|
|
+-->
|
2006-11-26 19:03:13 -05:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|