Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Indexing preferences based on certain paths.

Avatar

Level 2

During Indexing can we have some property by which results from the certain paths are given high preference rather others. 

Example - I want my query to fetch the results from both the paths (/content/A  , /content/B ) but results from path /content/A should be on top rather then results from /content/B.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
2 Replies

Avatar

Correct answer by
Employee Advisor

You can look into boost and search relevancy at [1]

 

[1] https://jackrabbit.apache.org/oak/docs/query/lucene.html#boost

Avatar

Level 2

Hi jbrar, i have gone through this article but in our case we are searching through pages and documents . so we want our matched pages comes on the top of result rather then PDFs. Adding boost property in all the pages is not feasible solution for us. So if here is any property by which one hierarchy given preference over other please let me know.