lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Whelan <phil...@gmail.com>
Subject Re: java.io.IOException when trying to list terms in index (IndexReader)
Date Sun, 02 Aug 2009 03:10:18 GMT
Hi Jim,

I cannot see anything obvious, but both open() and terms() throw
IOException's. You could try putting these in separate try..catch
blocks to see which one it's coming from. Or using e.printStackTrace()
in the catch block will give more info to help you debug what's
happening.

On Sat, Aug 1, 2009 at 7:09 PM, <ohaya@cox.net> wrote:
>                        reader = IndexReader.open(args[0]);
>                        Term term = new Term("path", "");
>                        termsEnumerator = reader.terms(term);

Cheers,
Phil

---------------------------------------------------------------------
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