Setting Excerpt (hit.getExcerpt) true for huge volume of PDFs is making search query really slow

Avatar

Avatar
Give Back
Level 1
abhishekk981269
Level 1

Likes

3 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 3
Affirm 1
Boost 1
View profile

Avatar
Give Back
Level 1
abhishekk981269
Level 1

Likes

3 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 3
Affirm 1
Boost 1
View profile
abhishekk981269
Level 1

22-08-2020

We have implemented custom search using query builder for Pages and Assets. When i set 

p.excerpt = true, I get all the information of excerpt for both pages and assets (pdfs mainly) but query gets super slow.

The query works as excepted (faster) if I just set the  excerpt for Pages but as soon as i use it for assets, it gets slow.

Is there any way to extract excerpt for huge volume of assets faster through querybuilder search.

 

(/jcr:root/content/xxx/us/en//element(*, cq:Page)[(jcr:contains(., 'xyz') and not(jcr:content/@isNotSearchable))] | /jcr:root/content/dam/xxx/documents//element(*, dam:Asset)[(jcr:contains(., 'xyz') )])/rep:excerpt(.)

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

234 likes

Total Posts

295 posts

Correct reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

234 likes

Total Posts

295 posts

Correct reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

24-08-2020

@abhishekk981269  Few questions to guide you better, What version of AEM are your using? What are doing with excerpts?