lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <cdor...@gmail.com>
Subject Re: Taxonomy indexer debug
Date Sat, 26 Nov 2011 20:36:27 GMT
>
> However there are at least two issues with this:
> 1) the info would be in the lower level of the internal index writer, and
> not in that of the categories logic.
> 2) one cannot just call super.openIndexWriter(directory, openMode) and
> modify the result before returning it, because once IW is opened it already
> extracted its settings from IndexWriterConfig, and the infoStream for
> example is final.
>

I just found out that the above holds for trunk, but is not true for 3x,
so, assuming it is not trunk being used, overriding this method would be
sufficient, as you can call super.openIW() and, just before returning the
writer, set its info stream by IW.setInfoStream().

Doron

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message