Re: Applying LUCENE-1606 -- which version

2010-01-24 Thread jyzhou817
Hi, I am planing to integrate Lucene into my web application. Can you please give high level steps to follow? Thanks Zhou --- On Fri, 22/1/10, Sriram Muthuswamy Chittathoor wrote: From: Sriram Muthuswamy Chittathoor Subject: Applying LUCENE-1606 -- which version To: java-user@lucene.apach

Re: Can't start Lucene App: java.io.FileNotFoundException with brand new directory

2010-01-24 Thread Raf
Hi, I think you should use another IndexWriter constructor: IndexWriter(Directory d, Analyzer a, IndexWriter.MaxFieldLength mfl) Constructs an IndexWriter for the index in d, first *creating it if it does not already exist*. Hope this helps. Bye Raf On Sun, Jan 24, 2010 at 4:48 AM, jc

Re: are Lucene queries thread-safe?

2010-01-24 Thread Michael McCandless
That's perfectly fine. Mike On Sat, Jan 23, 2010 at 5:50 PM, Paul Libbrecht wrote: > > Hello list, > > for some strange reason I wish to cache very frequent (and big, ~3000 terms) > queries. > Now, this might mean that a query is searched for in several threads on the > same index. Do I run a ri

Re: Can't start Lucene App: java.io.FileNotFoundException with brand new directory

2010-01-24 Thread Chris Lu
Think from another approach: You can check whether the index exists or not by IndexReader.*indexExists <../../../../org/apache/lucene/index/IndexReader.html#indexExists%28java.io.File%29>*(), and then determine what you want to do with the IndexWriter constructor. -- -- Chris Lu -