Expand my Community achievements bar.

SOLVED

Fulltext search

Avatar

Level 1

Hi im trying to use aem fulltext as 

path=/content

type=cq:Page

fulltext=word

 This is not giving me results, if the word is present in rich text. 

Will fulltext doesn't search in richtext? 

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @Balamani_KK , not whole page content hierarchy is being indexed. It depends on the aggregates configuration in the Lucene index for cq:Page node types. You can check the default or your custom cqPageLucene index configuration and check till what level down the hierarchy nodes are being included in the index. 

 

Below if the default cqPageLucene index in AEM as a Cloud. In order to include more nodes you will need to create a custom Lucene index.

 

Screenshot 2024-09-05 at 1.05.43 pm.png

 

View solution in original post

5 Replies

Avatar

Community Advisor

@Balamani_KK : Remove type filter from your query and it would work.

 

path=/content
fulltext=word

 

With type=cq:Page filter, it performs the search at jcr:content node level of your pages which contains all of your page level information. To test this, you can create any random property with this value and try searching, it should return the result then. I did the same and can see the results.

Kamal_Kishor_0-1725475522146.png

Avatar

Community Advisor

type= cq:Page is not required for the full text for your use case as this property is associated with the page node only. For your use case you can use type=nt:unstructured filter for your search query

 

Avatar

Correct answer by
Level 2

Hi @Balamani_KK , not whole page content hierarchy is being indexed. It depends on the aggregates configuration in the Lucene index for cq:Page node types. You can check the default or your custom cqPageLucene index configuration and check till what level down the hierarchy nodes are being included in the index. 

 

Below if the default cqPageLucene index in AEM as a Cloud. In order to include more nodes you will need to create a custom Lucene index.

 

Screenshot 2024-09-05 at 1.05.43 pm.png

 

Avatar

Community Advisor

Hi @Balamani_KK,

You can find similar discussion here for Quick Search core component which also utilise full text search. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/quick-search-component-not...

Avatar

Administrator

@Balamani_KK Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni