Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

how to add atleast 1000 Excerpt characters while hitting the query builder?

Avatar

Level 3

I'm getting only limited of 100 characters (not sure on count ) on excerpts while getting hits.

how to add custom excerpts to get full description or to change to 400 characters atlease.

 

for (Hit hit : result.getHits()) {
SearchResultNode srnode = new SearchResultNode();

String excerpt = hit.getExcerpt();
log.info("excerpt::::::::::::::" + excerpt);

}

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @keshava219,

Excerpt limit is 150 characters, it is not configurable. So probably the only option will be to create your own Hit implementation, that will support more than 150 characters. However that means you will have implement entire QueryBuilder on your own, to be able to use your custom Hit implementation.

Here are potential list of interfaces that you would need to implement:

However, I do not think this is a good idea.

Alternatively you can contact Adobe e.g. using Idea option via community and request characters limit for Excerpt to be configurable or extended.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @keshava219,

Excerpt limit is 150 characters, it is not configurable. So probably the only option will be to create your own Hit implementation, that will support more than 150 characters. However that means you will have implement entire QueryBuilder on your own, to be able to use your custom Hit implementation.

Here are potential list of interfaces that you would need to implement:

However, I do not think this is a good idea.

Alternatively you can contact Adobe e.g. using Idea option via community and request characters limit for Excerpt to be configurable or extended.