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);
}
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.