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

Excerpt in search result for PDF document stored in DAM


Level 2

How can we get excerpt in search results for a PDF document that is stored as a DAM asset.

We are using query builder API.  It does perform full text search.  That means that Tika is doing its job and somewhere full text of PDf has been extracted and stored (probably in lucene index).

hit.getExcerpt() in the SearchResult returns null for all PDF documents.  I also checked "Excerpt properties" for , it is currently set to Text and jcr:description.

I will really appreciate if you can help me in setting it right to get excerpt of document assets (specially PDF)

We are using AEM 6.0 SP2

1 Reply