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 "Shreya Gupta (JIRA)" <ji...@apache.org> on 2016/01/05 16:45:39 UTC

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

Shreya Gupta created OAK-3837:
---------------------------------

             Summary: 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.0.22, 1.2.2
            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)