Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32132 invoked from network); 13 Jul 2005 08:18:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2005 08:18:48 -0000 Received: (qmail 78317 invoked by uid 500); 13 Jul 2005 08:18:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78297 invoked by uid 500); 13 Jul 2005 08:18:39 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 78283 invoked by uid 99); 13 Jul 2005 08:18:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2005 01:18:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ian.lea@gmail.com designates 64.233.182.202 as permitted sender) Received: from [64.233.182.202] (HELO nproxy.gmail.com) (64.233.182.202) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2005 01:18:36 -0700 Received: by nproxy.gmail.com with SMTP id d4so24100nfe for ; Wed, 13 Jul 2005 01:18:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UjdE7GSzEZY8wIEVGNxESZzFXXnO4o3bvr7RVnQVxVF+TRGDIMgk7arIE8UzCgzp1sr6pTcyt97RYhtrgLN9VYj6I3gYL7dXtBU0iMSeiWdVzTOMzq0eFpHjy9Yj7EP0+nqAi/ob/qwphN0npTmuylDBrsFUGKRMDTh/M2Bj4RQ= Received: by 10.48.143.9 with SMTP id q9mr17163nfd; Wed, 13 Jul 2005 01:18:35 -0700 (PDT) Received: by 10.48.250.3 with HTTP; Wed, 13 Jul 2005 01:18:35 -0700 (PDT) Message-ID: <8c4e68610507130118484524e0@mail.gmail.com> Date: Wed, 13 Jul 2005 09:18:35 +0100 From: Ian Lea Reply-To: Ian Lea To: java-user@lucene.apache.org Subject: Re: SIMPLE Lucene / MySQL Indexer In-Reply-To: <20050712234350.4350.qmail@web52710.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050712234350.4350.qmail@web52710.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Something like this? IndexWriter iw =3D whatever ResultSet rs =3D whatever while (rs.next()) { Document ldoc =3D new Document(); ldoc.add(Field.Text("f1", rs.getString("f1")); ldoc.add(Field.Unstored("f2", rs.getString("f2")); ldoc.add(Field.Keyword("f3", rs.getString("f3")); ... iw.addDocument(ldoc); } rs.close(); iw.close(); On the IDE front, most people seem to use Eclipse nowadays. -- Ian. On 13/07/05, Klaus Hubert wrote: > Hi, >=20 > I played with several search engines to replace MySQL > FULLTEXT index and hope that Lucene is the best > solution for that. >=20 > I am reading Mannings book on Lucene in action and it > seems to be the most powerful search engine I found so > far. >=20 > I'm stuck at some problem and need help from you > experts. I managed to create an index as described in > the examples. I also managed to read a MySQL database > in Java. >=20 > My question is, if anybody here has some SIMPLE > example which does this in one step. I am good in PHP > and in Visual Basic, but very new to Java. Maybe I'm > using the wrong tools (NetBeans IDE and JCreator) but > I don't get it managed to create an Lucene Index on 3 > database fields. >=20 > I appreciate any help. >=20 > Thank you so much, >=20 > Klaus --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org