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)