[ 
https://issues.apache.org/jira/browse/LUCENE-5970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14171386#comment-14171386
 ] 

Yonik Seeley commented on LUCENE-5970:
--------------------------------------

I disagree that it's esoteric to want context, but if you really want to go 
down this path then just look back to when Solr did this by itself via 
SolrIndexReader.  It was removed as part of LUCENE-2831

> Remove IndexReaderContext/CompositeReaderContext/AtomicReaderContext
> --------------------------------------------------------------------
>
>                 Key: LUCENE-5970
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5970
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> This hierarchy is mega-confusing, has a overcomplicated hierarchy, and is 
> full of bugs.
> For example, in a two-segment index with one document in each:
> {code}
> context.docbase: 1
> context.reader().getContext().docBase: 0
> {Code}
> There is just no need for all this. We can replace it all with 'docbase'. For 
> the esoteric stuff solr wants to do, like top-level crap, it can do this with 
> its own filterreader instead, rather than pushing the complexity into lucene.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to