lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] Commented: (LUCENE-1920) Make MultiReader.isOptimized() return a useful result
Date Fri, 18 Sep 2009 16:22:16 GMT


Mark Miller commented on LUCENE-1920:

An optimized index is a single segment - MultiReader reads from multiple segments, and so
I would argue its not optimized and should return false.

If InstantiatedIndex will work when all of the segments MultiReader refs are optimized somehow,
I believe the workaround belongs in InstantiatedIndex.


> Make MultiReader.isOptimized() return a useful result
> -----------------------------------------------------
>                 Key: LUCENE-1920
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Bernd Fondermann
>            Priority: Minor
>         Attachments: MultiReader_isOptimized.patch
> The MultiReader statically returns FALSE on any isOptimized() call.
> This makes it unusable as the source index for an InstantiatedIndex, which checks initially
if the source index is optimized and aborts if not.
> The attached patch iterates all sub readers and returns TRUE if all of them are optimized.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message