Search without location tag is not displaying empty result message

Avatar

Avatar
Level 1
robinwadhwa
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
robinwadhwa
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
robinwadhwa
Level 1

17-02-2020

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

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

18-02-2020

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

 

Arun_Patidar_0-1582030665254.png

 

robinwadhwa

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.

Arun_Patidar

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.

robinwadhwa

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.

Arun_Patidar
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.
robinwadhwa

Thanks Arun for your input. 

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

Answers (0)