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

Yonik Seeley commented on LUCENE-1771:
--------------------------------------

bq.  Why not? QueryWeight implements Weight for back compat...

Couldn't QueryWeight just have the following default implementation?
 public Explanation explain(IndexReader reader, int doc) throws IOException {
   explain(reader,doc,null);
 }

And implementations would just need to be able to handle a null searcher (for 
now).

> Using explain may double ram reqs for fieldcaches when using 
> ValueSourceQuery/CustomScoreQuery or for ConstantScoreQuerys that use a 
> caching Filter.
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1771
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1771
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: 2.9
>
>         Attachments: LUCENE-1771.patch
>
>


-- 
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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to