DirectoryTaxonomyWriter has a protected indexWriter member. As far as I can tell, for two reasons:
- protected openIndexWriter method which lets you open your own IW (e.g. with a custom IndexWriterConfig).
- protected closeIndexWriter which is a hook for letting you close the IW you opened in the previous one.
The fixes are trivial IMO:
- Modify the method to return IW, and have the calling code set DTW's indexWriter member
- Eliminate closeIW. DTW already has a protected closeResources() which lets you clean other resources you've allocated, so I think that's enough.
I'll post a patch shortly.
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|52m 51s||1||Shai Erera||03/Nov/11 07:42|
|24d 4h 47m||1||Uwe Schindler||27/Nov/11 12:29|
Uwe Schindler made changes -
|Status||Resolved [ 5 ]||Closed [ 6 ]|
Shai Erera made changes -
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|