You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2013/08/12 18:52:49 UTC

[jira] [Commented] (LUCENE-5167) SimilarityBase does not pass docId in the score method for use of FieldCache or DocValues

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

Robert Muir commented on LUCENE-5167:
-------------------------------------

Thanks for opening the issue Ross,

I looked, the trickier part seems to be how to allow the users of this to get AtomicReader on each segment transition.

Currently, the idea is SimilarityBase hides a lot of this complexity (presents a simple stateless API over the more advanced stateful api): but in addition to passing docid, users will need a way to grab things like DocValues from each segment to make it useful... 
                
> SimilarityBase does not pass docId in the score method for use of FieldCache or DocValues
> -----------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5167
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5167
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/query/scoring
>    Affects Versions: 4.0, 4.1, 4.2, 4.4, 4.3.1
>            Reporter: Ross Woolf
>
> SimilarityBase does not pass docId in the score method for use of FieldCache or DocValues.
> If the intent of extending SimilarityBase is to use a FieldCache or NumericDocValuesField as part of the scoring, this is not possible because SimilarityBase does not pass on the docId as one of the parameters of the score method.  This parameter should be added to the score method so that fieldCache or NumericDocValues can be used when extending SimilarityBase.

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