We have just upgraded to AEM 6.5. Previously on AEM 6.2 version, our search functionality was not using any index but by traversing the node was giving the results. With AEM 6.5, we have fixed our lucene index and our search is using the index now to search.
Issue we are facing now is that when we search for any term, it only uses the URI and title of the page to search. Is there any configuration using which I can force my lucene index to search within body of my page as well?
My query looks like below :
select [jcr:path], [jcr:score], [rep:excerpt] from [nt:hierarchyNode] as a where isdescendantnode(a, '/content/mysite') and [jcr:content/hideFromSearch] is null and contains([jcr:content/*], 'Media')