[
https://issues.apache.org/jira/browse/OAK-5033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15615792#comment-15615792
]
Vikas Saurabh commented on OAK-5033:
------------------------------------
For specific case of understanding of how scoring is working, check out
{{oak:scoreExplanation}} (explained in oak lucene documentation.. I'm currently
not in great internet connectivity, else I'd have linked those directly)
> JCR Query Row's public getScore() has hardcoded value of 0.01
> -------------------------------------------------------------
>
> Key: OAK-5033
> URL: https://issues.apache.org/jira/browse/OAK-5033
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: lucene
> Reporter: David Gonzalez
> Priority: Minor
>
> RowImpl.java [1] hardcodes the result of the public API getScore() to 0.01.
> This is problematic when trying to debug/understand the effects of index
> boosting on search results.
> There is documentation that helps illustrate how boosting works wrt to
> lucene, but it is generally inaccessible to the lay-developer/QA.
> Understanding how the boost effects the result score would be quite helpful
> in understanding the effects of boost.
> Note: I understand this does not effect the internal scoring/ordering,
> however this is a public API and should return the expected value.
> [1]
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java#L84
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)