0

I am working on SXA search in Sitecore I found something strange, content or data of composite rendering child items like accordion item templates types items are not indexing.

I added _searchable template inheritance to all base templates of accordion templates (Accordion, Accordion Item, Accordion folder) It also didn't work.

I tried to query the template and accordion item in the Solr dashboard and also tried to search accordion item template type item in the Sitecore search box, but items are not showing there.

Accordion item templates type item also not appearing in scope query.

If you have any idea how the accordion child item of the accordion item template will be indexed in SXA?

I tried the below references. didn't work for me.

Ref:

  1. How can I modify SXA search component to search also in the Accordions content?

  2. SXA search - Accordion Items are not shown up after indexing even in scope query when we provide template name

3
  • Did you also try this? sitecore.stackexchange.com/questions/12281/… Sep 13, 2022 at 2:52
  • May be you can check basic things like 1. your template is not in ExcludeTemplates list 2. You can try to add your template in IncludeTemplates list 3. Check your index Crawling, if your item path is outside of crawling range then it won't include in search 4. rebuild the index
    – Rinku Jain
    Sep 13, 2022 at 6:06
  • Thanks Sumit and Rinku for your quick response. Your suggestions didn't work for me but i got idea.
    – Prem Murmu
    Sep 13, 2022 at 20:06

1 Answer 1

0

I will suggest that you can check the below things to make it work.

  1. Check if your template inherits from _Searchable template (/sitecore/templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable). That I think you have already done.

  2. Make sure you set that inheritance in the template first, create the items you need, and check the search result for the new items.

  3. Populate schema and rebuild indexes.

  4. Ensure that your search result component has a rendering variant set to it and that the rendering variant reads the correct fields from your items.

1
  • Thanks @SumitBhatia and Rinku Jain for your quick response. Your suggestions didn't work for me but i got idea. Composite rendering child items( of types Accordion Item, Carousel Slide, Flipside templates etc..), templates, placeholder keys are excluded by default, so this is reason these items types are not indexing in Sitecore Search or Scope query, Solr search. I commented few lines in config name "Sitecore.XA.Feature.Composites.config" and it started indexing. Please see link where I have implemented mypiblogs.com/Blog/Details/81
    – Prem Murmu
    Sep 13, 2022 at 20:12

Your Answer

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

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