Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to boost specific cq:model query

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @SimoneFaina 

 

Can you possibly use "Search Promote"?

https://experienceleague.adobe.com/docs/experience-manager-learn/assets/search-and-discovery/search-...

 

- 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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @SimoneFaina 

 

Can you possibly use "Search Promote"?

https://experienceleague.adobe.com/docs/experience-manager-learn/assets/search-and-discovery/search-...

 

- 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