Indexing preferences based on certain paths. | Community
Skip to main content
anji0723
February 10, 2020
Solved

Indexing preferences based on certain paths.

  • February 10, 2020
  • 1 reply
  • 2230 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by user05162

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

 

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

1 reply

user05162Adobe EmployeeAccepted solution
Adobe Employee
February 10, 2020

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

 

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

anji0723
anji0723Author
February 13, 2020

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.