On Fri, Sep 26, 2008 at 9:27 AM, Chris Hostetter
<[EMAIL PROTECTED]>wrote:

>
> couldn't the Listener's newSearcher() method just do something like
> this...
>
> if (rebuildOnlyAfterOptimize &&
>    ! (newSearcher.getReader().isOptimized() &&
>       ! oldSearcher.getReader().isOptimized()) {
>  return;
> } else {
>  // current impl
> }
>
> ...assuming a new "rebuildOnlyAfterOptimize" option was added?
>

Yup, that will work.

Jason, can you please open a jira issue to add this feature?

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to