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

Search with \'boost\' factor


Level 4

I have a search requirement where template A pages should appear before template B pages.

Is it possible to achieve with 'Lucene 'boost' configuration ? Please let me know if somebody has implemented similar usecase.

1 Reply


Level 9


Just providing details on whatever I am aware of :

Have seen instances wherein SQL2 query string with runtime lucene boosting is used at field level. 

Snippet as below :

StringBuilder query = new StringBuilder();

query.append("SELECT Path FROM [nt:base] AS s WHERE ISDESCENDANTNODE();

query.append(" AND ");

 query.append("CONTAINS(s.[cq:tags],'" + searchterm + "^600')");
        query.append(" OR ");

and so on..


Level 4

Thanks for your reply.Was looking for more on configuration level in AEM repository.


Level 10

I would recommend reading this here:

I am not aware of any AEM specific content for this use case. But the above blog would be a good place to start.