Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Query boosting at runtime


Level 2

much of the documentation states ( 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