Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 17449 invoked from network); 26 Jan 2002 16:38:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 26 Jan 2002 16:38:11 -0000 Received: (qmail 3984 invoked by uid 97); 26 Jan 2002 16:38:13 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 3938 invoked by uid 97); 26 Jan 2002 16:38:12 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 3927 invoked by uid 97); 26 Jan 2002 16:38:11 -0000 Date: 26 Jan 2002 16:38:07 -0000 Message-ID: <20020126163807.42593.qmail@icarus.apache.org> From: carlson@apache.org To: jakarta-lucene-cvs@apache.org Subject: cvs commit: jakarta-lucene/docs demo.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N carlson 02/01/26 08:38:07 Added: docs demo.html Log: Getting Started tutorial added by Andrew C. Oliver. Revision Changes Path 1.1 jakarta-lucene/docs/demo.html Index: demo.html =================================================================== Jakarta Lucene - Jakarta Lucene - Building and Installing the Basic Demo
Jakarta Lucene

About

Resources

Download

Jakarta

About this Document

This document is intended as a "getting started" guide to using and running the Jakarta Lucene demos. It walks you through some basic installation and configuration.


About the Demos

The Lucene Demo code is a set of command line example applications that demonstrate various functionality of Lucene and how one should go about adding it to their applications.


Setting your classpath

First, extract the latest Lucene distribution.

You should see the Jakarta Lucene jar file in the directory you created when you extracted the archive. It should be named something like lucene-{version}.jar.

You should also see a file called called lucene-demos-{version}.jar. Put both of these files in your Java CLASSPATH.


Indexing Files

Once you've gotten this far you're probably itching to go. Let's build an index! Assuming you've set your classpath correctly, just type "java org.apache.lucene.demo.IndexFiles {full-path-to-lucene}/src". This will produce a subdirectory called "index" which will contain an index of all of the Lucene sourcecode.

To search the index type "java org.apache.lucene.demo.SearchFiles". You'll be prompted for a query. Type in a swear word and press the enter key. You'll see that the Lucene developers are very well mannered and get no results. Now try entering the word "vector". That should return a whole bunch of documents. The results will page at every tenth result and ask you whether you want more results.


About the code...

read on>>>



Copyright © 1999-2002, Apache Software Foundation
-- To unsubscribe, e-mail: For additional commands, e-mail: