Search without location tag is not displaying empty result message

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

18-02-2020

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

 

Arun_Patidar_0-1582030665254.png

 

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.

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.

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.

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.

Thanks Arun for your input. 

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

Answers (0)