Expand my Community achievements bar.

Check out the 3rd Edition of the AEP Community Lens for all the latest releases, resources, and Community updates
SOLVED

Query Builder - Page title and Asset title search ordering

Avatar

Level 1

I am executing query which should return me results from page and assets. If keyword appears in title of page or asset, it should be listed first. Otherwise, if keyword appears anywhere else in page or asset, it should be listed in end.

 

I have added boost value to title in cqPageLucene and damAssetLucene , so that i get top results with search word appearing in title of page or asset.

 

Problem: I am not getting the required order. The search results always list me pages first and then the list of assets. Ordering within pages or within assets work fine, its just that I don’t get mix of results between page and assets. How can I update my query or index to get the required ordering of pages and assets.

 

Query

fulltext=fly

2_group.1_type=cq:Page
2_group.2_type=dam:Asset
2_group.p.or=true

3_group.1_path=/content/we-retail/us
3_group.2_path=/content/dam/we-retail
3_group.p.or=true

p.limit=10
p.or=false
p.offset=0

 

Actual Results

  •            /content/we-retail/us/en/experience/fly-fishing-the-amazon, (crxde, html, json)
  •            /content/we-retail/us/en/experience/steelhead-and-spines-in-alaska, (crxde, html, json)
  •            /content/we-retail/us/en/experience/hours-of-wilderness, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/fly-fishing-the-amazon/fly-fishing-the-amazon, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/fly-fishing-the-amazon/fly-fishing-the-amazon-1.jpg, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/48-hours-of-wilderness/48-hours-of-wilderness-1.jpg, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/steelhead-and-spines-in-alaska/steelhead-and-spines-in-alaska-1.jpg, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/steelhead-and-spines-in-alaska/steelhead-and-spines-in-alaska, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/48-hours-of-wilderness/48-hours-of-wilderness, (crxde, html, json)

 

Expected Results

 

  •            /content/we-retail/us/en/experience/fly-fishing-the-amazon, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/fly-fishing-the-amazon/fly-fishing-the-amazon-1.jpg, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/48-hours-of-wilderness/48-hours-of-wilderness-1.jpg, (crxde, html, json)
  •            /content/we-retail/us/en/experience/steelhead-and-spines-in-alaska, (crxde, html, json)
  •            /content/we-retail/us/en/experience/hours-of-wilderness, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/fly-fishing-the-amazon/fly-fishing-the-amazon, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/steelhead-and-spines-in-alaska/steelhead-and-spines-in-alaska-1.jpg, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/steelhead-and-spines-in-alaska/steelhead-and-spines-in-alaska, (crxde, html, json)
  •            /content/dam/we-retail/en/experiences/48-hours-of-wilderness/48-hours-of-wilderness, (crxde, html, json)

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

@Akash_Ramchanda : Seeing this community now for AEP. I think your question is related to AEM , so better to post here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...

1 Reply

Avatar

Correct answer by
Level 4

@Akash_Ramchanda : Seeing this community now for AEP. I think your question is related to AEM , so better to post here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...

page footer