You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2016/07/08 15:39:11 UTC
[jira] [Commented] (LUCENE-7372) factor out a
org.apache.lucene.search.DelegatingWeight class
[ https://issues.apache.org/jira/browse/LUCENE-7372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15367824#comment-15367824 ]
Adrien Grand commented on LUCENE-7372:
--------------------------------------
This should probably be called {{FilterWeight}} to be consistent with the rest of the code base? Also, why does its constructor take a Query object too? I think it should only take a Weight object and use the query returned by Weight.getQuery() to pass to the parent constructor? Otherwise +1.
> factor out a org.apache.lucene.search.DelegatingWeight class
> ------------------------------------------------------------
>
> Key: LUCENE-7372
> URL: https://issues.apache.org/jira/browse/LUCENE-7372
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
> Priority: Minor
> Attachments: LUCENE-7372.patch
>
>
> * {{DelegatingWeight}} to delegate method implementations to the {{Weight}} that it wraps
> * exception: no delegating for the {{bulkScorer}} method implementation since currently not all delegating weights implement/override that default method
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org