Re: Indexing and Searching Web Application

2009-01-20 Thread Amin Mohammed-Coleman
Hi Yes I am using the reopen method on indexreader. I am not closing the old indexer as per Ganesh's instruction. It seems to be working correctly so I presume it's ok not to close. Thanks Amin On 20 Jan 2009, at 19:27, "Angel, Eric" wrote: There's a reopen() method in the IndexReader

RE: Indexing and Searching Web Application

2009-01-20 Thread Angel, Eric
There's a reopen() method in the IndexReader class. You can use that. -Original Message- From: Amin Mohammed-Coleman [mailto:ami...@gmail.com] Sent: Tuesday, January 20, 2009 5:02 AM To: java-user@lucene.apache.org Subject: Re: Indexing and Searching Web Application Am I supposed to clo

Re: Indexing and Searching Web Application

2009-01-20 Thread Amin Mohammed-Coleman
Am I supposed to close the oldIndexReader? I just tried this and I get an exception stating that the IndexReader is closed. Cheers On Tue, Jan 20, 2009 at 9:33 AM, Ganesh wrote: > Reopen the reader, only if it is modified. > > IndexReader oldIndexReader = indexSearcher.getIndexReader(); > if (

Re: Maximum boost factor

2009-01-20 Thread Toke Eskildsen
On Fri, 2009-01-16 at 18:42 +0100, mitu2009 wrote: > Does anyone know the maximum boost factor value for a field in Lucene? http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/document/Field.html points to http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javad

Re: Indexing and Searching Web Application

2009-01-20 Thread Ganesh
Reopen the reader, only if it is modified. IndexReader oldIndexReader = indexSearcher.getIndexReader(); if (!oldIndexReader.isCurrent()) { IndexReader newIndexReader = oldIndexReader.reOpen(); oldIndexReader.close(); indexSearcher.close(); IndexSearcher indexSearch = new IndexSearcher

Re: Detailed Information about Lucene 2.4 (english/german)

2009-01-20 Thread Matthias W.
Grant Ingersoll-6 wrote: > > I would have a look at Lucene In Action 2nd edition for a > comprehensive view. Otherwise, if you have specific questions, your > best bet is the mail archives and/or simply to ask. > > I don't know of any German resources. > Thanks! I think I'll buy Lucene

Re: Indexing and Searching Web Application

2009-01-20 Thread Amin Mohammed-Coleman
Hi After your email I had a look around and came up with the below solution (I'm not sure if this is the right approach or there is a performance implication to doing this) public Summary[] search(SearchRequest searchRequest) { List summaryList = new ArrayList();