Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 98865 invoked from network); 3 Sep 2007 18:48:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 18:48:09 -0000 Received: (qmail 47908 invoked by uid 500); 3 Sep 2007 18:47:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 47867 invoked by uid 500); 3 Sep 2007 18:47:57 -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 47856 invoked by uid 99); 3 Sep 2007 18:47:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 11:47:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gui@prosoma.com.br designates 67.19.26.18 as permitted sender) Received: from [67.19.26.18] (HELO diesel.infoage.com.br) (67.19.26.18) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 18:47:51 +0000 Received: from davinci.prosoma (unknown [172.31.255.5]) by diesel.infoage.com.br (Postfix) with ESMTP id 0536B4742C1 for ; Mon, 3 Sep 2007 15:44:47 -0300 (BRT) Received: from [172.16.88.6] (unknown [172.16.88.6]) by davinci.prosoma (Postfix) with ESMTP id DFF3DB77DE for ; Mon, 3 Sep 2007 15:52:02 -0300 (BRT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Guilherme Barile Subject: Re: JdbcDirectory Date: Mon, 3 Sep 2007 15:47:06 -0300 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Storing the data in the index, mainly for non-structured data. We plan to implement something like this ThingDB from http://=20 demo.openlibrary.org/about/tech, and though that maybe lucene + =20 JdbcDirectory could act as a backend. gui On Sep 3, 2007, at 2:34 PM, Askar Zaidi wrote: > Yes. Every time a user updates a piece of information, you do the =20 > update in > the DB as well as the Index. If you are using Hibernate, they have =20 > an API > that does this mapping. I am not sure why you plan to store data in =20= > the > Index ?? Storing data is the DBs job, searching is the Index job. I =20= > would > suggest you have both (a schema for your data and an index). Thats =20 > what I > did. I could have stored everything on the Lucene Index, but I am =20 > scared as > the application grows I will need a DB system eventually. I don't =20 > think > people use Lucene to "store" data just as they do it in a DBMS. > > - > Askar > > On 9/3/07, Guilherme Barile wrote: >> >>> 1) I don't understand why the index would get corrupted. We store >>> huge data >>> and meta-data using Lucene. >> >> I got that information when lucene 1.4 was the lastest version, may >> have changed. I'll trust you. >> >>> 2) For this, I synced Lucene with the DB operations. If you use >>> Hibernate, >>> theres an API for that. Or, you could just write your own factory >>> methods to >>> add/delete/edit index documents when a DB operation takes place >>> (e.g edit). >> >> You mean every time you update the db, you update the index also ? >> I'm actually planning not to use any external entity, and rely >> everything on Lucene. Wondered if some simple query (get the lastest >> document for example) would solve the versioning issue >> >> Thanks a lot >> >> Gui >> >>> >>> On 9/3/07, Guilherme Barile wrote: >>>> >>>> Hello, >>>> We're starting a new project, which basically catalogs >>>> everything >>>> we >>>> have in the department (different objects with different metadata), >>>> and as I used Lucene before, I'm preparing a presentation to the >>>> team, as I think it would really simplify the storage of =20 >>>> metadata and >>>> documents. >>>> The system will be pretty straightforward, all items =20 >>>> will be >>>> cataloged, and most of them won't be changed too much ( I'll raise >>>> this question later ). >>>> So, here are my main concerns, hope you can help >>>> >>>> 1) Storing all data (index and content) wasn't recommended in the >>>> past, as the index could become corrupted. Do I have this =20 >>>> problem if >>>> I use a JdbcDirectory (PostgreSQL backend) ? I already read =20 >>>> about the >>>> performance degradation when using a database as main storage, but >>>> this won't be a problem. >>>> >>>> 2) Lucene doesn't support incremental editing (a new Document =20 >>>> will be >>>> created when someone edits an item), so is it possible to manage =20= >>>> some >>>> kind of versioning ? Anyone ever implemented something this way ? >>>> >>>> Thanks a lot for the attention >>>> >>>> Guilherme Barile >>>> Prosoma Inform=E1tica >>>> -------------------------------------------------------------------=20= >>>> -- >>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>> >>>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org