Unable to search in XML Editor for a specific file

Avatar

Avatar
Ignite 1
Level 1
helloosuman
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
helloosuman
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
helloosuman
Level 1

04-10-2020

Product: AEM 6.5 ServicePack:5 XML addon:3.6.5

Select any existing map or topic title Populate AEM search with the title. The title appears in the Assets search result prefill. Select the prefill. No results return.

Note that there is custom code exists. (there is no custom code for search)

See below log:

04.10.2020 14:04:26.911 *WARN* [192.223.242.21 [1601820266870] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.jackrabbit.oak.query.QueryImpl Traversal query (query without index): select [jcr:path], [jcr:score], [rep:facet(jcr:content/metadata/dc:format)], [rep:facet(jcr:content/metadata/dam:status)] from [dam:Asset] as a where contains(*, 'Newsline') and isdescendantnode(a, '/content/dam') /* xpath: /jcr:root/content/dam//element(*, dam:Asset)[(jcr:contains(., 'Newsline'))]/(rep:facet(jcr:content/metadata/dc:format)|rep:facet(jcr:content/metadata/dam:status)) */; consider creating an index
04.10.2020 14:04:26.912 *WARN* [192.223.242.21 [1601820266870] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] libs.granite.ui.components.coral.foundation.masonry Failed to wrap datasource for lookahead
org.apache.sling.api.scripting.ScriptEvaluationException:
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416) [org.apache.sling.scripting.core:2.0.56]
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184) [org.apache.sling.scripting.core:2.0.56]
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491) [org.apache.sling.scripting.core:2.0.56]
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552) [org.apache.sling.engine:2.7.2]
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44) [org.apache.sling.engine:2.7.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:82) [org.apache.sling.engine:2.7.2]
at com.day.cq.wcm.core.impl.WCMDeveloperModeFilter.doFilter(WCMDeveloperModeFilter.java:119) [com.day.cq.wcm.cq-wcm-core:5.12.124.CQ655-B0001]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:72) [org.apache.sling.engine:2.7.2]
at com.adobe.acs.commons.wcm.impl.ComponentErrorHandlerImpl.doFilter(ComponentErrorHandlerImpl.java:193) [com.adobe.acs.acs-aem-commons-bundle:4.3.0]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:72) [org.apache.sling.engine:2.7.2]
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:138) [com.day.cq.wcm.cq-wcm-core:5.12.124.CQ655-B0001]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:72) [org.apache.sling.engine:2.7.2]
at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:375) [com.day.cq.wcm.cq-wcm-core:5.12.124.CQ655-B0001]
at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:190) [com.day.cq.wcm.cq-wcm-core:5.12.124.CQ655-B0001]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:72) [org.apache.sling.engine:2.7.2]
at com.day.cq.wcm.core.impl.page.PageLockFilter.doFilter(PageLockFilter.java:91) [com.day.cq.wcm.cq-wcm-core:5.12.124.CQ655-B0001]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:72) [org.apache.sling.engine:2.7.2]
at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:94) [com.day.cq.cq-personalization:5.12.40]

 

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [org.apache.felix.http.jetty:4.0.16]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [org.apache.felix.http.jetty:4.0.16]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388) [org.apache.felix.http.jetty:4.0.16]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) [org.apache.felix.http.jetty:4.0.16]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) [org.apache.felix.http.jetty:4.0.16]
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.sling.api.SlingException:
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:691) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:608) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:533) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:339) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:97) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:600) [org.apache.sling.scripting.jsp:2.3.6]
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) [org.apache.sling.scripting.core:2.0.56]
... 221 common frames omitted
Caused by: java.lang.IllegalArgumentException: rep:facet(jcr:content/metadata/dc:format) can't be evaluated by traversal
at org.apache.jackrabbit.oak.plugins.index.Cursors$TraversingCursor.<init>(Cursors.java:269) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.plugins.index.Cursors.newTraversingCursor(Cursors.java:109) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.index.TraversingIndex.query(TraversingIndex.java:43) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.ast.SelectorImpl.executeInternal(SelectorImpl.java:365) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.ast.SelectorImpl.execute(SelectorImpl.java:342) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.fetchNext(QueryImpl.java:872) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.hasNext(QueryImpl.java:903) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.fetch(QueryResultImpl.java:103) [org.apache.jackrabbit.oak-jcr:1.22.3]
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:99) [org.apache.jackrabbit.oak-jcr:1.22.3]
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:83) [org.apache.jackrabbit.oak-jcr:1.22.3]
at com.day.cq.search.impl.builder.QueryImpl$RowIterable.iterator(QueryImpl.java:805) [com.day.cq.cq-search:5.12.16]
at com.day.cq.search.impl.builder.QueryImpl.execute(QueryImpl.java:645) [com.day.cq.cq-search:5.12.16]
at com.day.cq.search.impl.builder.QueryImpl.getResult(QueryImpl.java:110) [com.day.cq.cq-search:5.12.16]
at com.day.cq.dam.core.impl.omnisearch.AbstractAssetOmniSearchHandler.getResults(AbstractAssetOmniSearchHandler.java:149) [com.day.cq.dam.cq-dam-core:5.12.242]
at com.day.cq.dam.core.impl.omnisearch.AssetOmniSearchHandler.getResults(AssetOmniSearchHandler.java:99) [com.day.cq.dam.cq-dam-core:5.12.242]
at com.adobe.granite.omnisearch.impl.core.OmniSearchServiceImpl.getSearchResults(OmniSearchServiceImpl.java:143) [com.adobe.granite.omnisearch.core:1.0.88]
at org.apache.jsp.libs.granite.ui.components.shell.omnisearch.datasource.searchdatasource.searchdatasource_jsp._jspService(searchdatasource_jsp.java:157)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [org.apache.sling.scripting.jsp:2.3.6]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [org.apache.felix.http.servlet-api:1.1.2]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502) [org.apache.sling.scripting.jsp:2.3.6]
... 226 common frames omitted
04.10.2020 14:04:26.913 *INFO* [192.223.242.21 [1601820266870] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] libs.granite.ui.components.coral.foundation.masonry Fallback to non-lookahead datasource
04.10.2020 14:04:26.913 *WARN* [192.223.242.21 [1601820266870] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] com.day.cq.dam.core.impl.omnisearch.AssetOmniSearchHandler Found 'group.2_group.type' key to be nt:folder. Changing type value...
04.10.2020 14:04:26.914 *WARN* [192.223.242.21 [1601820266870] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.jackrabbit.oak.query.QueryImpl Traversal query (query without index): select [jcr:path], [jcr:score], [rep:facet(jcr:content/metadata/dc:format)], [rep:facet(jcr:content/metadata/dam:status)] from [dam:Asset] as a where contains(*, 'Newsline') and isdescendantnode(a, '/content/dam') /* xpath: /jcr:root/content/dam//element(*, dam:Asset)[(jcr:contains(., 'Newsline'))]/(rep:facet(jcr:content/metadata/dc:format)|rep:facet(jcr:content/metadata/dam:status)) */; consider creating an index
04.10.2020 14:04:26.916 *ERROR* [192.223.242.21 [1601820266870] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.IllegalArgumentException: rep:facet(jcr:content/metadata/dc:format) can't be evaluated by traversal
at org.apache.jackrabbit.oak.plugins.index.Cursors$TraversingCursor.<init>(Cursors.java:269) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.plugins.index.Cursors.newTraversingCursor(Cursors.java:109) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.index.TraversingIndex.query(TraversingIndex.java:43) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.ast.SelectorImpl.executeInternal(SelectorImpl.java:365) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.ast.SelectorImpl.execute(SelectorImpl.java:342) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.fetchNext(QueryImpl.java:872) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.hasNext(QueryImpl.java:903) [org.apache.jackrabbit.oak-core:1.22.3]
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.fetch(QueryResultImpl.java:103) [org.apache.jackrabbit.oak-jcr:1.22.3]
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:99) [org.apache.jackrabbit.oak-jcr:1.22.3]
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:83) [org.apache.jackrabbit.oak-jcr:1.22.3]
at com.day.cq.search.impl.builder.QueryImpl$RowIterable.iterator(QueryImpl.java:805) [com.day.cq.cq-search:5.12.16]
at com.day.cq.search.impl.builder.QueryImpl.execute(QueryImpl.java:645) [com.day.cq.cq-search:5.12.16]
at com.day.cq.search.impl.builder.QueryImpl.getResult(QueryImpl.java:110) [com.day.cq.cq-search:5.12.16]
at com.day.cq.dam.core.impl.omnisearch.AbstractAssetOmniSearchHandler.getResults(AbstractAssetOmniSearchHandler.java:149) [com.day.cq.dam.cq-dam-core:5.12.242]
at com.day.cq.dam.core.impl.omnisearch.AssetOmniSearchHandler.getResults(AssetOmniSearchHandler.java:99) [com.day.cq.dam.cq-dam-core:5.12.242]
at com.adobe.granite.omnisearch.impl.core.OmniSearchServiceImpl.getSearchResults(OmniSearchServiceImpl.java:143) [com.adobe.granite.omnisearch.core:1.0.88]
at org.apache.jsp.libs.granite.ui.components.shell.omnisearch.datasource.searchdatasource.searchdatasource_jsp._jspService(searchdatasource_jsp.java:157)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [org.apache.sling.scripting.jsp:2.3.6]