Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Search without location tag is not displaying empty result message

Avatar

Level 2

robinwadhwa_0-1582008589782.png

If I remove the Location assets and do the seatch again it will not show the empty result message.

 

Below is the screenshot.

 

robinwadhwa_1-1582008697270.png

 

 @smacdonald2008

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Which AEM version are you using , I checked in AEM 6.4 works

 

Arun_Patidar_0-1582030665254.png

 

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

Which AEM version are you using , I checked in AEM 6.4 works

 

Arun_Patidar_0-1582030665254.png

 

Avatar

Level 2

I am using AEM 6.5 and my question is

 

if you search for any random keyword suppose

search key is "fjsdflkasdf" for this result count will come null.

 

In this case is should show the empty result message as its showing while location is given.

Avatar

Community Advisor

The reason is both the cases the query is different

Without location - 

http://localhost:4504/mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html?p.guessTotal=1000&fulltext=fjsdflkasdf&_=1582044479880

 

If you use location - 

http://localhost:4504/mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html?p.guessTotal=1000&fulltext=fjsdflkasdf&savedSearches%40Delete=&savedSearches=&type=cq%3APage&3_path=&1000_group.p.or=true&jcr%3Acontent%2Fcq%3Atags%40TypeHint=String%5B%5D&jcr%3Acontent%2Fcq%3Atags%40Delete=&orderby=path&320_daterange.lowerBound=&320_daterange.lowerBound%40TypeHint=Date&320_daterange.upperBound=&320_daterange.upperBound%40TypeHint=Date&320_daterange.property=jcr%3Acontent%2Fcq%3AlastModified&320_daterange.breadcrumbs=jcr%3Acontent%2Fcq%3AlastModified+%7B%24lowerBound%7D+-+%7B%24upperBound%7D&6_property=jcr%3Acontent%2Fcq%3AlastReplicationAction&6_property.breadcrumbs=Publish+Status&7_property=jcr%3Acontent%2Fcq%3AlastRolledoutBy&7_property.breadcrumbs=LiveCopy+Status&contentPath=%2Fcontent&location=site&location.suggestion=Sites&_=1582044529373 

 

you can check this with Adobe via raising day care ticket.

Avatar

Level 2

Arun, I am trying to override the below file

/libs/granite/ui/components/shell/omnisearch/datasource/mixedsearchdatasource/mixedsearchdatasource.jsp

 

Is this apporch is fine like trying to override omnisearch?

 

 

 

Am trying few things before raising adobe ticket for the same.

Avatar

Community Advisor
Hi, Do you mean, you are overriding omnisearch ? If you so then please make sure you will not impact other searches like path browser, assets search etc.

Avatar

Level 2

Thanks Arun for your input. 

Today I am going to raise a ticket for the same.