0

I am using sitecore 9.0.1 with sxa 1.7.We have a requirement where we keep common components in a shared site folder. We have added a search box component which is from a partial design of a shared site folder into our APAC site folder and we want to give a search result page for a search box component which is under APAC site but it is not showing the pages under APAC site. Can anyone please explain what needs to be configured here.

Below is the image of Tenant where the shared site is tagged

enter image description here

Header is the partial design where it has search box component in it and i want to specify the search result page here which is in APAC site

enter image description here

This is how search box component shows for search result page field

enter image description here

Can anyone please help me with this.

Thank you

2
  • You need to select the search page item in the "Search Result Page" field in the control properties. – Raman Gupta Mar 12 at 15:04
  • yes but the search result page is in APAC site folder .Search box component is in Shared site folder so its not showing the pages which is under APAC its showing as attached in the scrnshot @RamanGupta – Vinaya Mar 12 at 15:09
0

In order to have your shared items included in the index they have to use a template which inherits from _Searchable (/sitecore/templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable).

In \App_Config\Modules\SXA\z.Foundation.Overrides\Sitecore.XA.Foundation.Search.Solr.config there is a computed indexfield defined that SXA uses for each item during indexing:

<field fieldName="searchable">Sitecore.XA.Foundation.Search.ComputedFields.Searchable, Sitecore.XA.Foundation.Search</field>

One other thing to note is that if not specified explicitly search results will be narrowed to the current site. You can extend it adding additional nodes to Associated Content field, otherwise in the solr index the items will have "searchable_b": false

enter image description here

6
  • These things i have done but still i am not able to see APAC node to attach search result page in partial design of shared folder @Cristi Vulturar – Vinaya Mar 15 at 4:58
  • Can you check if after rebuilding the sitecore index are you able to find the items in the solr index? – Cristi Vulturar Mar 15 at 8:04
  • Yes i am able to see that.@Cristi Vulturar – Vinaya Mar 15 at 9:27
  • I updated the answer to include the associated content update aswell. Can you verify if you have searchable:true in solr index after rebuild? – Cristi Vulturar Mar 15 at 9:42
  • Associated content i have added already and can you please tell where to verify searchable:true @Cristi Vulturar – Vinaya Mar 15 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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