How to boost specific cq:model query | Community
Skip to main content
New Member
May 27, 2022
Solved

How to boost specific cq:model query

  • May 27, 2022
  • 1 reply
  • 670 views

Hello all, I'm developing an end-user component to search the whole content site. I'm using query builder and I write a single query that search for fulltext results for type=cq:Page and type=dam:Asset (for content fragment and .pdf file) with some clauses.

Now I need to boost the content fragment results that have a specific cq:model.

I'm looking around the forum and documentations and I found only how to boost from oak:index specific property that will work when that property value appear in fulltext query, but I need to give more relevance to those results that have, for example, value: "/conf/my-site/settings/dam/cfm/models/news" in "jcr:content/data/cq:model".

 

Any ideas? , ty

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 aanchal-sikka

Hello @simonefaina 

 

Can you possibly use "Search Promote"?

https://experienceleague.adobe.com/docs/experience-manager-learn/assets/search-and-discovery/search-boost.html?lang=en

 

- Add a specific keyword in "Search Promote" for relevant content fragments 

- then use this additional keyword to boost search.

 

If these content fragments are located under a specific folder, then Metadata profiles might help to set default metadata (Keyword for Search promote)

1 reply

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
September 3, 2023

Hello @simonefaina 

 

Can you possibly use "Search Promote"?

https://experienceleague.adobe.com/docs/experience-manager-learn/assets/search-and-discovery/search-boost.html?lang=en

 

- Add a specific keyword in "Search Promote" for relevant content fragments 

- then use this additional keyword to boost search.

 

If these content fragments are located under a specific folder, then Metadata profiles might help to set default metadata (Keyword for Search promote)

Aanchal Sikka