Excerpt/hit.getExcerpt() is giving {relevant_links} as value when using QueryBuilderAPI | Community
Skip to main content
kamalakannank62
Level 3
Apr 2, 2019 12:49 PM UTC
Solved

Excerpt/hit.getExcerpt() is giving {relevant_links} as value when using QueryBuilderAPI

I am Using Query builder API for fulltext search, When using hits.getExcerpt() i am getting value as {relevant_links} for few pages. But when checking the same under http://localhost:4502/libs/cq/search/content/querydebug.html  i was able to see proper excerpt for the pages. I have set setExcerpt to true while constructing the query before executing is there something am missing?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
chandu_t
chandu_tAccepted solution
Level 3
Apr 3, 2019 9:37 AM UTC

Strange issue, double check your content most likely some content issue.

12 replies

smacdonald2008
Level 10
Apr 2, 2019 7:39 PM UTC

Please post - as Lokesh suggests - your full query. The community will help more given more details here.

Translate
Lokesh_Shivalingaiah
Level 10
Apr 2, 2019 3:26 PM UTC

Hi Kamal,

Are you getting it for all the pages or only few ? Can you post your query and sample output ?

Translate