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

Yonik Seeley commented on SOLR-7876:
------------------------------------

I tried implementing something that would use a different reader when a timeout 
isn't needed on a per-query basis, but I ran into issues
>From TermQuery / TermWeight:
{code}
      assert termStates.topReaderContext == 
ReaderUtil.getTopLevelContext(context) : "The top-reader used to create Weight 
(" + termStates.topReaderContext + ") is not the same as the current reader's 
top-reader (" + ReaderUtil.getTopLevelContext(context);
{code}

createWeight takes a searcher, and the TermWeight implementation remembers the 
top reader context from that searcher, later comparing it against the readers 
used for scoring.


> Support disabling ExitableDirectory wrapper when not needed
> -----------------------------------------------------------
>
>                 Key: SOLR-7876
>                 URL: https://issues.apache.org/jira/browse/SOLR-7876
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.0, 5.1, 5.2, 5.2.1
>            Reporter: Tomás Fernández Löbbe
>             Fix For: 5.3
>
>
> ExitableDirectoryReader can cause some overhead in Solr for some use cases, 
> even when not really used. There should be a way of not using it when not 
> needed.
> See http://search-lucene.com/m/l6pAi1HLrodLhNUd



--
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