jcr:score criteria | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Hello @pixislinger 

 

  • The jcr:score property is calculated using the FulltextSearch query function in AEM.
  • The score is based on the number of times the search terms appear in the node's properties, the proximity of the terms to each other, and other relevance factors.
  •  

Importance of jcr:score in AEM queries:

  • jcr:score is important in AEM queries because it allows you to sort the query results by relevance.
  • Sorting by jcr:score ensures that the most relevant nodes appear at the top of the search results.

2 replies

nitesh_kumar-1
Adobe Employee
Adobe Employee
March 15, 2023

Hi @pixislinger ,


It represents the full-text search score of the node, which is a measure of the node's relevance to the full-text search expression.

 

More implementation details here:-
https://docs.jboss.org/modeshape/2.6.0.Final/manuals/reference/html/jcr-query-and-search.html 

https://lucene.apache.org/core/3_0_3/api/core/org/apache/lucene/search/Similarity.html 

 

Hope this helps!

Regards,

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
March 18, 2023

Hello @pixislinger 

 

  • The jcr:score property is calculated using the FulltextSearch query function in AEM.
  • The score is based on the number of times the search terms appear in the node's properties, the proximity of the terms to each other, and other relevance factors.
  •  

Importance of jcr:score in AEM queries:

  • jcr:score is important in AEM queries because it allows you to sort the query results by relevance.
  • Sorting by jcr:score ensures that the most relevant nodes appear at the top of the search results.
Aanchal Sikka