AEMaaCS - QueryBuilder: is it possible to set excerpt length using OOTB features? | Community
Skip to main content
Level 2
January 9, 2025
Solved

AEMaaCS - QueryBuilder: is it possible to set excerpt length using OOTB features?

  • January 9, 2025
  • 1 reply
  • 591 views

Is it possible to set excerpt length in query results, using AEMaaCS OOTB features?

 

I'm using QueryBuilder to execute fulltext queries on content pages on AEMaaCS.

The excerpt extraction is working, calling hit.getExcerpt(), but the excerpt length is limited to 150 characters.

I've seen on the web that it is a known problem, see [1], because this limit seemed to be hard coded in the class that implements the Hit interface (com.day.cq.search package), but in in a later documentation page, i.e. [2], there are a couple of details that give me hope:

  1. "By default, the character limit for the excerpt property is set to 150 characters". Saying "by default", it suggests that the limit can be overridden somehow.
  2. In the "Resolution" section, there is what could be a feature request code ("FR# ASSETS-16621"), so the excerpt length configuration feature could have been added after [1].

So, can the excerpt length be changed, and how?

 

Thanks,

 

Filippo

 

 

[1] https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/excerpt-property-in-aem-lucene-search/m-p/270663

[2] https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-20748 

 

Best answer by FilippoDT

@shashi_mulugu I followed your suggestion and opened a support ticket, thanks.

Adobe support response says that the 150-characters limit is a "fixed default", meaning that currently it can't be configured, and the "FR# ASSETS-16621" ticket hasn't been prioritized, so I think it will remain not configurable in the currently planned releases too.

1 reply

Shashi_Mulugu
Community Advisor
Community Advisor
January 10, 2025

@filippodt work with Adobe technology support to get that hot fix package 

FilippoDTAuthorAccepted solution
Level 2
January 14, 2025

@shashi_mulugu I followed your suggestion and opened a support ticket, thanks.

Adobe support response says that the 150-characters limit is a "fixed default", meaning that currently it can't be configured, and the "FR# ASSETS-16621" ticket hasn't been prioritized, so I think it will remain not configurable in the currently planned releases too.