1

I'm trying to modify Sitecore default behaviour to search also in accordions content. I have checked Is Displayed in Search Results at /sitecore/templates/Feature/Experience Accelerator/Composites/Datasource/Accordion/Accordion Item/Accordion Item/Content but it's not working.

Thanks in advance.

1 Answer 1

1

Few things need to be done:

  1. Your template needs to inherit from /sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable
  2. Create Search Scope which will include your custom template. Location for the scopes is /sitecore/content/TENANT/SITE/Settings/Scopes and your scope query can look like:

enter image description here

  1. There is one more thing which might be needed if in the future you would like to search in the different locations. On the Settings item, you will find
    Associated Content field. Update it in order to search in the different/custom locations.
1
  • Thanks @Dawid Rutkowski. I'm doing something wrong because search is not working. I have created a new scope with that query build. I have used the item ID of the Accordions inside Data for location and the item ID of my custom template for template. +location:{1F88BD05-6EE5-4A10-8D65-BCC09AE1A00D};+template:{54B4026C-5B98-4C7F-BA41-032CC003226A} Commented May 16, 2018 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.