Highlighted

How to Add Custom Search Facet based on Custom Metadata Fields

mattb33671946

22-04-2019

I am setting up our Custom Metadata Schemas and would like to have the ability to filter by the values that are assigned to the new Metadata fields that I am adding.  From what I have read in the links below and others I've found online, that is done in Tools > General > Search Forms > Assets Admin Search Rail. 

Search Facets

Use custom search facets

However, when I add the Property Predicate, I am not seeing the Custom Metadata field when clicking through the Property Name check box & navigating through the jcr:content folders.  Is there a step that I'm missing here?  Or are Custom Metadata fields not available to be used as Search Facets in Assets?

Note that I'll also be looking to use this Search Facet on Brand Portal.

Replies

Highlighted

ukgaurav

Employee

22-04-2019

Hi, Can you first try to add a property in schema form which you are using and then map to new property. After that if you try to customize search form the property would appear. We are reviewing more on how this is working technically but would take time. In the meantime this workaround would unblock you. Thanks, Gaurav

Highlighted

mattb33671946

23-04-2019

Thank you for the response.  I'm unfortunately not familiar with the step that you are advising "...map to new property. After that if you try to customize search form the property would appear."

If I'm understanding correctly, that is done in the Metadata Schema Editor shown below, selecting the field I want to search by, and clicking the check box next to the "Map to property" field in the right. 

Screen Shot 2019-04-23 at 4.50.10 AM.png

Assuming that's correct, can you provide some additional detail on how to map this Metadata field to a new property?

Follow-up questions:

  • If this is the process for getting one Metadata field as a Search Facet in the Assets Search Rail, will this mapping process need to be repeated for additional Custom Metadata fields on a one-to-one basis (one new property for each Metadata field to be represented in the Search Rail)?
  • Are there any additional steps required to make this new Search Facet available via Brand Portal?  From what I'm reading in the article below, once a Facet is enabled in Assets, it is available in Brand Portal; please confirm or provide additional direction. 

Thank you again. 

Highlighted

Sushant_Bhasin

23-04-2019

Hi ,

Property Picker(and auto suggestions) in search forms use metadata fields defined in metadata schemas. If i define a new field in metadata schema that points to jcr:content/metadata/dummyField then this field will be visible in property picker for search form.

Do note that if property is not visible in property picker you can still create a search predicate based on it. You'll just have to type complete property name (i.e. jcr:content/metadata/dummyField) instead of selecting from picker.

Highlighted

mattb33671946

23-04-2019

Thanks for the clarification. The only questions I have at this point:

  • how to create a new Property (such as jcr:content/metadata/dummyField) that I will map the new Metadata field to. 
    • Is this done via CRX or the AEM UI?
  • am I correct that each Metadata field that will be represented as a Search Facet will need to be mapped to their own independent Property?
Highlighted

sindhug14537977

17-07-2019

I'm also trying to do something similar.

I have to save product model Number to Asset metadata.

Are there any metadata fields already available to do this. (OR)

Should i totally create a new metadata property and use it to map a new field in metadata schema.

Did you get to implement this.

if so, can you please post the solution here.

Thank You!

Highlighted

emilyc15

06-11-2019

Did you receive an answer to your questions below?  I have these questions and am trying to figure it out. Hope you can help! Thanks!

Is this done via CRX or the AEM UI?

Am I correct that each Metadata field that will be represented as a Search Facet will need to be mapped to their own independent Property?