Skip to main content
diegow5307109
Jun 18, 2019 3:32 PM UTC

Querying jcr:score

Good morning team.

I'm trying to retrieve the value of jcr:score for a full text search, but I'm not able to see the value using the following query

is there a way to see this value in a query?


Regards.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

Adobe Employee
Jun 18, 2019 4:02 PM UTC

You can use JCR Query Cheat Sheet [1] to build your query. It might be easier to build a SQL/SQL2 query then you can generate the xpath query from the SQL query in CRX/DE

[1] https://wiki.magnolia-cms.com/display/WIKI/JCR+Query+Cheat+Sheet

Translate
diegow5307109
Jun 18, 2019 4:11 PM UTC

Thanks for your reply Hamid.

I'm using the query debugger (http://localhost:4502/libs/cq/search/content/querydebug.html​ ) to run the query and I'm able to see some properties clicking on the link JSON QueryBuilder Link​​​, but the jcr:score property is never shown in any of the values in the JSON.

Also the generated Xpath is

/jcr:root/content/stantec//element(*, cq:PageContent)

[

(jcr:contains(., 'David Dixon')

and @jcr:title)

]

Translate
Adobe Employee
Jun 18, 2019 4:22 PM UTC

This could potentially be due to JSON Max results i.e. json.maximumresults, [1] assuming the query is fine. When this limit is exceeded the rendering will be collapsed.

[1] Security Checklist

Translate