lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26196] - IndexWriter problem when create set to false
Date Thu, 04 Mar 2004 17:52:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26196>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26196

IndexWriter problem when create set to false





------- Additional Comments From cutting@apache.org  2004-03-04 17:52 -------
I don't think that is a correct description of current behaviour.  Perhaps this
is the source of the confusion.  Current behaviour should be:

public IndexWriter(String d, Analyzer a, boolean create) throws IOException {
    if (create) {
      // if the directory doesn't exist, create it
      // if the files are there, delete them and start again
    } else {
      // if the directory doesn't exist, or the files are not there,
      // throw a FileNotFoundException, else work with what's there
    }
 }

Is that not what you're seeing?

Also, for back-compatibility reasons, we cannot change the semantics of
IndexWriter(String,boolean).

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message