Développer ma barre des réalisations de la Communauté.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

QueryBuilder: boost specific "path"

Avatar

Ex-membre de la communauté

Hi,

is there any way I can boost a specific path value when executing a query with the QueryBuilder API?

map.put("1_group.p.or", "true"); map.put("1_group.1_path", "/content/test/"); map.put("1_group.2_path", "/content/dam/test/");

I would like to boost pages over DAM assets. I tried using "^5.0" as described here [1] but maybe that only works for jcr:contains?

Thanks,

Paul

 

[1] https://helpx.adobe.com/experience-manager/kb/BoostInSearch.html

1 solution acceptée

Avatar

Réponse correcte par
Level 10

See this note in the article:

Note: The boost in this case is respected only if a jcr:contains() is done on the corresponding property, for example jcr:contains(@jcr:title, 'find this'). If there is only a jcr:contains(., 'find this'),  the boosts at indexing time have no effect.

Looks like it only works on jcr:contains. 

Voir la solution dans l'envoi d'origine

3 Replies

Avatar

Level 10

As mentioned here [1], boost applies only when searching for specific terms and I doubt it supports for the path

[1] http://docs.day.com/content/en/home/crx/crx141/first_steps_with_crx/searching_in_crx/0.html

Avatar

Ex-membre de la communauté

OK, thanks guys! Just wanted to make sure I'm understanding that correctly and I'm not missing anything.

Avatar

Réponse correcte par
Level 10

See this note in the article:

Note: The boost in this case is respected only if a jcr:contains() is done on the corresponding property, for example jcr:contains(@jcr:title, 'find this'). If there is only a jcr:contains(., 'find this'),  the boosts at indexing time have no effect.

Looks like it only works on jcr:contains.