Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3837

Jcr:score returning same for all search results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.22, 1.2.2
    • Fix Version/s: None
    • Component/s: query
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sgupta23 Shreya Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: