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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2018/05/22 07:40:00 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=16483597#comment-16483597 ] 

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

Sorry for the delay...

> in order to have more insight into the our search-results.

It would be good to know more details (what kind of insight, and why). Something like: if we could list the score, then we could do X.

> 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: query
>    Affects Versions: 1.0.22, 1.2.2
>            Reporter: Shreya Gupta
>            Priority: Major
>
> 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
(v7.6.3#76005)