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

Thomas Mueller commented on OAK-3837:
-------------------------------------

I agree it's a bug. Could you provide the use case (why do you need to have 
this bug fixed)?

> 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)

Reply via email to