incubator-lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject Re: [lucy-dev] Promoting new analysis components
Date Thu, 09 Feb 2012 20:09:08 GMT
On 09/02/2012 18:49, Marvin Humphrey wrote:
> Rehashing our short exchange on IRC for the benefit of the list... I suggest
> using PolyReader#open for this, since it returns NULL rather than throwing an
> exception on failure.  If open() is successful, the resulting reader can be
> used as an argument to IndexSearcher#new:

Actually, PolyReader#open doesn't return NULL if the index is empty. But 
the list of seg_readers will be empty, so we can test for that.

See the attached patch for my second attempt.

Nick

Mime
View raw message