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
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
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 (
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
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
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
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();