Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-27 Thread Ajay Garg
Thanks Mike. Yes, I know, 2.3.2 doesn't have commit(). That's why, I asked whether commit = close + new IndexWriter, because then I can write a commit() method, encapslating close() + new IndexWriter. Thanks a ton for the prompt replies.. Ajay Garg Michael McCandless-2 wrote: > > > Ajay Garg

Re: Creating an index from an XML file using Lucene in Java

2008-07-27 Thread syedfa
I think I understand what you are saying, but I was hoping you could clarify a little further. in the start-element method, I have the following: if(qName.equals("SPEECH")){ doc=new Document(); } are you saying that I should add an ident

Re: Lucene performance issues..

2008-07-27 Thread Stu Hood
Also, keep in mind that optimization is a very disk intense process (and therefore slow). It completely rewrites the index, and should only be done when you are not expecting the index to change for a while. -Original Message- From: "Daniel Naber" <[EMAIL PROTECTED]> Sent: Sunday, July

Re: Lucene performance issues..

2008-07-27 Thread Daniel Naber
On Sonntag, 27. Juli 2008, Mazhar Lateef wrote: > We have also tried upgrading the lucene version to 2.3 in hope to > improve performance but the results were quite the opposite. but from my > research on the internet the Lucene version 2.3 is much faster and > better so why are we seeing such inc

Lucene performance issues..

2008-07-27 Thread Mazhar Lateef
Hi, we have a system to archive mails and are facing some issues that we are having with search and indexing performance, the following is what we are currently facing challenges with, we are currently using lucene version 2.2 the platform is SLES10.1 and the application is written in Java.

Re: deleting documents with doc id

2008-07-27 Thread Karsten F.
Hi, only to be sure: You know IndexModifier.deleteDocument(int)? It is deprecated, because you should use IndexWriter.deleteDocuments(Term[]). What do you mean with "index is committed". If you mean "optimize()" the document number will change (so there is a side-effect;-) best regards Karste

Re: Creating an index from an XML file using Lucene in Java

2008-07-27 Thread Karsten F.
Hi Fayyaz, >From my point of view, this is not a lucene question. If I understand your SAX-Handler correctly, you start a document with each "speech"-start-Tag and you end this document with each "lines"-close-Tag. So if you know that the SCENE-COMMENTARY Elements and the speech elements are dis

Creating an index from an XML file using Lucene in Java

2008-07-27 Thread syedfa
Dear fellow Java/Lucene developers: I have a question on creating an index from an XML document for the purpose of searching using the Lucene API in Java. I am searching shakespeare's "Hamlet" which I have as an xml document. I want to include comentary on each scene and would like to make th