Expand my Community achievements bar.

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

Avatar

Level 2

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-lu...

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

 

0 Replies