lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: Possible exceptions using IndexReader & IndexWriter
Date Mon, 18 Sep 2006 04:23:33 GMT
On 9/18/06, Jed Wesley-Smith <> 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 Solr, the open-source Lucene search server

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message