AEM 6.3 upgrade issue in Search functionality

Avatar

Avatar

amanagarwal

Avatar

amanagarwal

amanagarwal

13-09-2017

Hi Team,

I am working on an Upgrade project where we are upgrading current implementation from AEM 6.1 to AEM 6.3.

Though we have not got any major issues, but we are facing below issue in Search functionality.

In AEM 6.1, when developing Search functionality, we had used the implementation Objects used in OOTB Search (/libs/foundation/components/Search) and utilized the methods of com.day.cq.wcm.foundation.Search class.

In AEM 6.1 we have used the below setter method which works fine, but the same is not working in AEM 6.3, it gives no results, when setter method is used. When we comment the below method , it works fine and gives results, but we are not looking to search all the properties.

search.setSearchProperties(searchProps);  [where searchProps is String which has Search Properties to be searched separated by a comma]

Kindly suggest next steps/ solution.

Regards,

Aman

Replies

Avatar

Avatar

amanagarwal

Avatar

amanagarwal

amanagarwal

14-09-2017

I get the following under error logs:

- When search.setSearchProperties(searchProps); is commented

org.apache.jackrabbit.oak.query.QueryImpl Traversal query (query without index): select [jcr:path], [jcr:score], * from [nt:base] as a where [queries] = 'leadership' and [avgPosition] is not null and isdescendantnode(a, '/var/statistics/results') /* xpath: /jcr:root/var/statistics/results//*[@queries = 'leadership' and @avgPosition] */; consider creating an index

- When search.setSearchProperties(searchProps); is not commented

org.apache.jackrabbit.oak.query.QueryImpl Traversal query (query without index): SELECT [rep:spellcheck()] FROM [cq:Page] AS a WHERE [jcr:path] = '/' AND SPELLCHECK('leadership') UNION SELECT [rep:spellcheck()] FROM [dam:Asset] AS a WHERE [jcr:path] = '/' AND SPELLCHECK('leadership'); consider creating an index