Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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.