Let's see:
import org.apache.lucene.search.*;
import org.apache.lucene.index.*;
import org.apache.lucene.analysis.SimpleAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
public class HitDocDeleteTest {
static String indexDir = "/tmp/hddt";
st
> Do you get 2 .cfs files even if you add isearcher.close() right after
> you open the IndexSearcher?
Nope! Adding the close() right after the open gives me one .cfs file.
Monsur
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Just tried this on my linux laptop - with IndexSearcher uncommented, I
still get a single .cfs file. It's one of those problems where Windows
doesn't let you erase the file. I'd start this SortTest in the
debugger and step through it until you find a spot where you see that
some index file deleti
Well, that's part of my question, sorry if it wasn't clear. I'm not
explicitly closing the IndexSearcher, because there may be users still using
it. Instead, I'm creating a new IndexSearcher, and leaving the old
IndexSearcher to be cleaned up by the GC, as suggested here:
http://tinyurl.com/8qz
Ok, I've written up a Java test with Lucene 1.4.3, the code is pasted below.
The code creates a new index, creates an IndexSearcher object, and then does
an incremental index/optimize. The IndexSearcher line is commented out.
When I run this code, I end up with a single "segments", "deletable" and
Monsur Hossain writes (4/28/2005 4:44 PM):
Hi there. Thanks for the input. I just pulled together a quick set of .NET
console apps to test this out. I have an app that indexes and an app that
holds an open searcher. Sure enough, after each incremental index/searcher
refresh, I can't delete the
I've been thinking about splitting a (presumably large) Lucene index
up into two: one index only contains "indexed" (searchable) fields,
and the second index contains only stored fields. I'm interested in
whether this might increase response time or throughput for a
high-volume system. Google ap
Hi there. Thanks for the input. I just pulled together a quick set of .NET
console apps to test this out. I have an app that indexes and an app that
holds an open searcher. Sure enough, after each incremental index/searcher
refresh, I can't delete the old index files. I even tried doing a
gc.
Maybe it is .NET specific?! We use a very similar
Szenario with Java under Windows and the Server is
now running for 40 day since we launched it productively.
No problem at all! We have two index directories between
which we switch back and forth though?
Frank
>-Original Message-
>From: M
Monsur Hossain writes (4/28/2005 3:10 PM):
Hi all. I'm running Lucene.NET in a Windows/ASP.NET environment. We are
searching a 300meg index in a web environment, where the IndexSearcher is
cached. Every 10-30 minutes, a separate process updates the index. When
ASP.NET's cache detects a changed
Hi,
Thanks. That seems to work. I guess calling the close before the add
causes the last few documents to be flushed out or something?
-Original Message-
From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 2:19 PM
To: java-user@lucene.apache.org
Subject: Re: L
Hi all. I'm running Lucene.NET in a Windows/ASP.NET environment. We are
searching a 300meg index in a web environment, where the IndexSearcher is
cached. Every 10-30 minutes, a separate process updates the index. When
ASP.NET's cache detects a changed index, it drops the current IndexSearcher
Can you close the ramDirectory first and then add it via fsWriter and
see if that solves it?
Otis
--- Mufaddal Khumri <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to index 20349 records. When I index using the
> FSDirectory I
> get 20349 documents - this is correct. Now when I ude the
> RAMD
Hi,
I am trying to index 20349 records. When I index using the FSDirectory I
get 20349 documents - this is correct. Now when I ude the RAMDirectory
to create my index and write all documents from the RAMDirectory to the
FSDirectory I only get 20340 documents consistently. This is the only
change I
Suppose I do a search and get a hit list. Before I access the hit list,
my delete routine (running in another thread) comes along and deletes
some documents. What happens if I now try to access documents that have
been deleted?
Scott
Hi!
Please add huubs (http://www.huubs.com) to the
"Powered by Lucene" list page.
It is a news search engine built using lucene and
clucene.
Any comments are apreciate?
Cheers,
Albert
__
Renovamos el Correo Yahoo!: ยก250 MB
16 matches
Mail list logo