Hi,
I confirm that it is working correctly in lucene 2.2.0 and not working in
2.1.0.
Thanks a lot,
Tanya
-Original Message-
From: Michael Busch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 7:25 PM
To: java-user@lucene.apache.org
Subject: Re: Problem using RAMDirectory as a
Hi,
I am using lucene 2.1.0. I'll try to download 2.2 and test it.
Thanks,
Tanya
-Original Message-
From: Michael Busch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 7:25 PM
To: java-user@lucene.apache.org
Subject: Re: Problem using RAMDirectory as a buffer
Tanya Lev
Tanya Levshina wrote:
> Nope, doesn't work.
> I've tried:
>
> ramWriter.addDocument(doc);
> ramWriter.flush();
> ramWriter.close();
> fsWriter.addIndexes(new Directory[] {ramDir,});
>
>
>
> Any other suggestions?
>
Are you sure? That's strange, I just took your code and tried it out
m
ore complicated problem
-Original Message-
From: Michael Busch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 6:57 PM
To: java-user@lucene.apache.org
Subject: Re: Problem using RAMDirectory as a buffer
Daniel Noll wrote:
> On Friday 22 June 2007 09:34:44 Ta
--
From: Daniel Noll [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 6:39 PM
To: java-user@lucene.apache.org
Subject: Re: Problem using RAMDirectory as a buffer
On Friday 22 June 2007 09:34:44 Tanya Levshina wrote:
> ramWriter.addDocument(doc);
>
> fsWriter.
Daniel Noll wrote:
> On Friday 22 June 2007 09:34:44 Tanya Levshina wrote:
>> ramWriter.addDocument(doc);
>>
>> fsWriter.addIndexes(new Directory[] {ramDir,});
>
> As IndexWriter already does this internally, I'm not exactly sure why you're
> trying to implement it again on the
On Friday 22 June 2007 09:34:44 Tanya Levshina wrote:
> ramWriter.addDocument(doc);
>
> fsWriter.addIndexes(new Directory[] {ramDir,});
As IndexWriter already does this internally, I'm not exactly sure why you're
trying to implement it again on the outside.
Daniel
--
Daniel N