Expand my Community achievements bar.

SOLVED

Cannot get partial search to work on custom metadata property in admin search rail

Avatar

Level 4

Hello -- I am trying to enable the ability to perform a partial search from the Admin Search Rail and keep receiving a "null" message on screen.

 

Background:

  • I have a custom namespace "cgb" registered.
  • The custom metadata value I want to enable partial search on is called "cgbCustomerName"
  • I have created a property within our oak index (damAssetLucene-8) titled "cgbCustomerName" and set the "analyzed" property to "true" per the on screen warning that appears when selecting Partial Search when customizing the Admin Search Rail.
  • I have reindexed the oak index that contains this property and have run the Non-Production Pipeline to deploy in our Dev Environment.

 

Any help on this would be appreciated.

 

AEMaaCS Release (Development Environment): 2023.3.11382.20230315T073850Z

 

admin-search-null.pngindex-property-setup.pngpartial-search-warning.pngproperty-predicate-setup.png

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@ndlholm1 You will have to capture the query specific to your custom property cgb:CustomerName from Query Performance Console and check error logs relevant to this custom property

View solution in original post

3 Replies

Avatar

Employee Advisor

Hi @ndlholm1 

Can you try capturing the query either from logs or query performance console and use Explain Query.

This will explain you, if the above index is being picked up by the query or not

Avatar

Level 4

I reviewed the error log and performed Explain Query. Below are the *WARN* and *ERROR* items that may be related to my issue. I've also included the information from Explain Query, but I'm not sure what I need to do next.

*WARN* [FelixStartLevel] org.apache.jackrabbit.oak.plugins.index.elastic.ElasticIndexProviderService The Elastic cluster at https://elasticsearch-master:9200/cm-p54903-e364010-author is not reachable. The index cleaner job has not been enabled

*WARN* [FelixStartLevel] org.apache.jackrabbit.oak.plugins.index.elastic.ElasticConnection Error checking connection for https://elasticsearch-master:9200/cm-p54903-e364010-author, message: elasticsearch-master: Name or service not known

*ERROR* [FelixLogListener] com.adobe.cq.dam.cfm.graphql.ContentFragmentPlugin bundle cq-dam-cfm-graphql:0.0.252 (189)[com.adobe.cq.dam.cfm.graphql.ContentFragmentPlugin(361)] : The bindGraphqlOptimizationToggleNotifier method has thrown an exception (java.lang.NullPointerException)

*ERROR* [FelixLogListener] com.adobe.cq.dam.cfm.graphql.ContentFragmentPlugin bundle cq-dam-cfm-graphql:0.0.252 (189)[com.adobe.cq.dam.cfm.graphql.ContentFragmentPlugin(361)] : The bindGraphqlOptimizationToggleNotifier method has thrown an exception (java.lang.NullPointerException)

*ERROR* [FelixStartLevel] com.adobe.fmdita.rest.folderprofiles.FolderProfilesAPI Error in initializing trie for folder profiles

*WARN* [68.234.79.146 [1680695887267] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults/singleresults/searchpanel.asset.html HTTP/1.1] com.day.cq.wcm.core.impl.page.PageImpl page at /conf/global/settings/dam/search does not have a jcr:content childresource
05.04.2023 11:58:07.390 [cm-p54903-e364010-aem-author-85f4fcb7df-955wb] 

*WARN* [68.234.79.146 [1680695887267] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults/singleresults/searchpanel.asset.html HTTP/1.1] com.day.cq.wcm.core.impl.page.PageImpl page at /conf/global/settings/dam/search does not have a jcr:content childresource
05.04.2023 11:58:07.485 [cm-p54903-e364010-aem-author-85f4fcb7df-955wb] 

*ERROR* [68.234.79.146 [1680695887267] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults/singleresults/searchpanel.asset.html HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource JcrNodeResource, type=nt:unstructured, superType=null, path=/conf/global/settings/dam/search/facets/assets/jcr:content/items/channels
05.04.2023 11:58:07.527 [cm-p54903-e364010-aem-author-85f4fcb7df-955wb] 

*WARN* [68.234.79.146 [1680695887267] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults/singleresults/searchpanel.asset.html HTTP/1.1] com.day.cq.wcm.core.impl.page.PageImpl page at /conf/global/settings/dam/search does not have a jcr:content childresource

 

query.pngquery-explain.png

Avatar

Correct answer by
Employee Advisor

@ndlholm1 You will have to capture the query specific to your custom property cgb:CustomerName from Query Performance Console and check error logs relevant to this custom property