cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS SCORE() function

davidciamberlan
Elite Collaborator
Elite Collaborator
Hi,

I need to realize a CMIS full-text query where the results are ordered by relevance.

I know that I can use The CONTAINS() + SCORE() functions… what I don't understand is: how is the score calculated?

Can you point me to some documentation for that?

Thanks!
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

the SCORE() function effectively uses the low-level SOLR / Lucene scoring algorithm. The CMIS spec does not define how a Repository is supposed to score a result except that it should limit the score to between 0 and 1.
Documentation for <a href="https://wiki.apache.org/solr/SolrRelevancyFAQ">SOLR relevance</a> and <a href="https://lucene.apache.org/core/3_6_0/scoring.html">Lucene scoring</a> may help gain an understanding of the general algorithm, but don't expect a formula that you can calculate on your own in most instances.

Regards
Axel