lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mduduzi Gwala <mdugw...@yahoo.com>
Subject IndexWriter constructor
Date Wed, 25 Sep 2002 15:52:56 GMT
Hi all

I have been given an assignment to search a web
application database using lucene. This is my first
lucene exercise.

The problem is according to the following IndexWriter
constructor:

  /** Constructs an IndexWriter for the index in
<code>d</code>.  Text will be
    analyzed with <code>a</code>.  If
<code>create</code> is true, then a new,
    empty index will be created in <code>d</code>,
replacing the index already
    there, if any. */
  public IndexWriter(Directory d, Analyzer a, final
boolean create)
       throws IOException {

If create is true then a new empty index will be
created, but when I run a search the first time it
works fine but the second time I get an error saying
something like: java.IOEXception: couldn't delete
_d.fi. It seems to get arround this problem one needs
to restart the server. Can anyone help me on how I can
perform any number of searches with or without the
above constructor without having to restart the
server.

Thanks
Mduduzi 


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message