I have integrated AEM with remote Solr as, 'Solr as an Oak index' and when running solr queries, I could see all my content indexed and shown into remote Solr.
However when I run some AEM specific jcr queries in AEM for certain search application, In the AEM logs, I could see the request going through to solr to fetch content but the result is empty. In Solr logs following is the stack trace:
2019-02-26 13:09:56.093 ERROR (qtp1514322932-145) [ x:oak] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: undefined field catch_all
What am i doing wrong here ? Also what is official version of Solr which is supported on these types on integrations.
P.S: I have deleted the default oak index and I am just using the new solr oak index, which is when I are facing this issue.
Can you show the JCR Queries you are using. Aslo - we are running a session on AEM Queries in 30 mins.
It is for any query we are getting this error.
An example of a query would be:
select [jcr:path], [jcr:score], * from [dam:Asset] as a where not([jcr:content/metadata/hiddenFromSearch] like 'true') and not([jcr:path] like '%/content/dam/test-cmi/locations%') and not([jcr:path] like '%/content/dam/test-cmi/images/slipsheet%') and not([jcr:path] like '%/content/dam/test-cmi/images/cover-art-images%') and not([jcr:path] like '%/content/dam/test-cmi/images/theme-images%') and not([jcr:path] like '%/content/dam/test-cmi/images/general-images%') and not([jcr:path] like '%/content/dam/test-cmi/images/banner-images%') and isdescendantnode(a, '/content/dam/test-cmi')
It seems to me that Solr is not able to get the right content for a given jcr query.
I have done some research on this and found that there are 4 types of Search implementation possible with AEM:
Plain old oak
Solr embedded in Oak
Solr as an remote oak index
Solr - AEM restful integration.
Of all the four, the only recommended way by Adobe is the last one.