On 9/18/06, Jed Wesley-Smith <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]