I've also seen FileNotFound exceptions when attempting a search on an index
while it's being updated, and the searcher is in a different JVM.  This is
supposed to be supported, but on Windows seems to regularly fail (for me
anyway).

The simplest solution to this would be a service oriented approach, using a
web service or RMI interface to the index.  Performance issues not
withstanding.

On 9/18/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:

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]


Reply via email to