lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Possible exceptions using IndexReader & IndexWriter
Date Mon, 18 Sep 2006 04:23:33 GMT
On 9/18/06, Jed Wesley-Smith <jed@atlassian.com> wrote:
> We're just wondering if anyone has seen any exceptions when using the
> IndexWriter.addDocument(...) or IndexReader.deleteDocuments(Term term)
> methods apart from catastrophic IOExceptions (disk full/failed etc.).

And out-of-memory exceptions.

> Is it possible for instance that we may be able to create a document
> that causes an exception when written?

IndexWriter.addDocument invokes the analyzer you are using for indexed
fields.  If any of the analyzers you are using can throw exceptions,
that would bubble up.

> It doesn't seem to be possible,
> and we've never seen it happen, but we just to check with everyone  to
> see if anyone knows of such things.

It might be a very rare case in Windows that renaming a file can fail
and result in an IOException.


-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

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


Mime
View raw message