Fulltext search | Community
Skip to main content
September 4, 2024
Solved

Fulltext search

  • September 4, 2024
  • 5 replies
  • 1095 views

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? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by adilyataim

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.

 

 

5 replies

Kamal_Kishor
Community Advisor
Community Advisor
September 4, 2024

@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.

DPrakashRaj
Community Advisor
Community Advisor
September 4, 2024

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

 

adilyataimAccepted solution
Level 2
September 5, 2024

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.

 

 

Mahedi_Sabuj
Community Advisor
Community Advisor
September 5, 2024
Mahedi Sabuj
kautuk_sahni
Community Manager
Community Manager
September 13, 2024

@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