You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "jochen tombal (JIRA)" <ji...@apache.org> on 2016/11/03 09:31:59 UTC

[jira] [Commented] (OAK-3837) Jcr:score returning same for all search results

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

jochen tombal commented on OAK-3837:
------------------------------------

Hi [~tmueller],

My name is Jochen Tombal from Capgemini. We have received this request from our client in order to have more insight into the our search-results.
But we have stumbled on this issue of the scoring being hard-coded to 0.01

Kr,
Jochen

> Jcr:score returning same for all search results 
> ------------------------------------------------
>
>                 Key: OAK-3837
>                 URL: https://issues.apache.org/jira/browse/OAK-3837
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.2.2, 1.0.22
>            Reporter: Shreya Gupta
>
> While doing a full-text search the jcr:score comes out to be 0.01 for all the content. Please find the attached code snippet and the screenshot for the result for jcr:score.
> Query:
>                              queryParams.put("path", "/content/dam");
>                              queryParams.put("fulltext", q);
>                              queryParams.put("orderby", "@jcr:score");
>                              queryParams.put("orderby.sort", "desc");
>                              queryParams.put("p.limit", "10");
> It seems that the value is hardcoded in the code. [1]
> [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)