Expand my Community achievements bar.

customizing Excerpt property description

Avatar

Former Community Member

We are using query-builder API  to get the search results in our project. we are fetching short description using hit.getExcerpt( ) and we are customizing excerpt.properties by giving in the config node.but the issue is excerpt trying to give last 50 characters of that respective property. but we want it to be customized to first 50 characters. how could we achieve this please drop your inputs.

4 Replies

Avatar

Administrator

Hi 

Please refer to the documentation 

Link:- https://docs.adobe.com/docs/en/aem/6-0/administer/integration/marketing-cloud/campaign.html

Video Reference Link :- https://www.youtube.com/watch?v=bTtB-barrr4

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Former Community Member

Hi

Its no where related to Adobe Campaigns. i am asking related to Query builder search function hit.getExcerpt() result customization.

Thanks in Advance

Avatar

Level 10

I think Kautuk mixed up threads. Anyhow - look at this Javadoc: 

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/search/result/Hit.html#getExcerpts()

This method returns a map. Have you tried reading the Map<String,String> values? Are you saying that the map value is the last 50 chars? 

Avatar

Former Community Member

smacdonald2008 wrote...

I think Kautuk mixed up threads. Anyhow - look at this Javadoc: 

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/search/result/Hit.html#getExcerpts()

This method returns a map. Have you tried reading the Map<String,String> values? Are you saying that the map value is the last 50 chars? 

 

Hi 

i am trying to get the hit.getExcerpt() value which is returning last 50 chars.i want it to be customized