Expand my Community achievements bar.

Query boosting at runtime

Avatar

Level 2

much of the documentation states (https://dev.day.com/docs/en/crx/current/developing/searching_in_crx.html) you can set boosting at runtime and gives example in both sql and xpath:

select * from nt:base where contains(*, '"day crx"^10 "apache jackrabbit"^8 lucene^0.5') order by jcr:score //element(*, nt:base)[jcr:contains(., '"day crx"^10 "apache jackrabbit"^8 lucene^0.5')] order by @jcr:score

but it seems like adobe suggests all queries be run by QueryBuilder.  Is it at all possible to add boosting using predicates or hashmaps through QueryBuilder?  seems like just adding ^10 to the values just append it as text and incorporates it in the keyword 

0 Replies