Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Excerpt in search result for PDF document stored in DAM

Avatar

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 com.day.cq.search.impl.builder.QueryBuilderImpl , 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