Filtering on AEM OOTB search results is not giving accurate results | Community
Skip to main content
Level 2
June 16, 2022
Solved

Filtering on AEM OOTB search results is not giving accurate results

  • June 16, 2022
  • 1 reply
  • 1375 views

Env: AEMaaCS

 

I created a new page under sites and was able to search the page using AEM OOTB search feature, but when i was trying to filter the results based on "Publish Status" as "Unpublished" it was not showing any results. Interestingly if the page is once published and then unpublished, the filter seems to be working fine. It is only for the new pages created it doesn't seem to work

 

Any ideas???

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SantoshSai

Hi @pharidoss ,

I have checked it following similar steps as you mentioned by applying Publish Status filter as both "Published" as well as "Unpublished" and found same result as you. However, I believe it is expected result, because

  1. When you publish page the property called cq:lastReplicationAction is set to "Activate".
  2. When you un-publish page same property will be updated as "Deactivate".

and according to OOTB functionality query fetches based on those properties and gives us result.

Additionally,  referring to the Adobe documentation here  

haven't mentioned expecting such issue.

Hope that helps!

Regards,

Santosh

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
June 17, 2022

Hi @pharidoss ,

I have checked it following similar steps as you mentioned by applying Publish Status filter as both "Published" as well as "Unpublished" and found same result as you. However, I believe it is expected result, because

  1. When you publish page the property called cq:lastReplicationAction is set to "Activate".
  2. When you un-publish page same property will be updated as "Deactivate".

and according to OOTB functionality query fetches based on those properties and gives us result.

Additionally,  referring to the Adobe documentation here  

haven't mentioned expecting such issue.

Hope that helps!

Regards,

Santosh

Santosh Sai
pharidossAuthor
Level 2
June 17, 2022

Thanks for the detailed response @santoshsai, I understand the technical PoV but functionally it would be difficult to explain this to authors (anyone) as they would naturally expect the new unpublished pages to show up by applying that filter. 

SantoshSai
Community Advisor
Community Advisor
June 17, 2022

@pharidoss Agree! Unfortunately, that's how the functionality per Adobe. We could customize it, but it would be costly operation and depends level of necessity is.

Santosh Sai