[
https://issues.apache.org/jira/browse/LUCENE-5090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699423#comment-13699423
]
Robert Muir commented on LUCENE-5090:
-------------------------------------
ReaderUtil.getTopLevelContext ?
{code}
* Walks up the reader tree and return the given context's top level reader
* context, or in other words the reader tree's root context.
*/
public static IndexReaderContext getTopLevelContext(IndexReaderContext
context) {
while (context.parent != null) {
context = context.parent;
}
return context;
}
{code}
> SSDVA should detect a mismatch in the SSDVReaderState
> -----------------------------------------------------
>
> Key: LUCENE-5090
> URL: https://issues.apache.org/jira/browse/LUCENE-5090
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/facet
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 5.0, 4.4
>
> Attachments: LUCENE-5090.patch
>
>
> This is trappy today: every time you open a new reader, you must create a new
> SSDVReaderState (this computes the seg -> global ord mapping), and pass that
> to SSDVA.
> But if this gets messed up (e.g. you pass an old SSDVReaderState) it will
> result in confusing AIOOBE, or silently invalid results.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]