3

I have Site1 and Site2 in same tenant and I want to see serach results from Site2 while staying in context of Site1. I have also added Site2 in "DatasourceSearchScope" Site1 -> Settings -> Search criteria to extend search according to SXA documentation.

2 Answers 2

1

Like it's mentioned in the documentation first you have to configure additional search scope:

enter image description here

In general, this should be enough. Ensure that you see any results at all and don't forget about proper sites configuration. Add an asterisk to your main site (site where you want to run the search) Host Name field so that it will take all of the search service responses:

enter image description here

4
  • I have setup accordingly [screencast.com/t/JnZyk2sMKQ] but still can't see items from Site2 as I am searching from i.e local.site1/search but still showing result only related to site1. config settings [screencast.com/t/KRVKcpsdp] and binding settings as follows: [screencast.com/t/AcBityq4g5IV]
    – Tahir Ali
    Commented Feb 20, 2017 at 10:52
  • Host name have * as mentioned in above screen shots
    – Tahir Ali
    Commented Feb 20, 2017 at 10:57
  • Probably you've already done it but ensure that you have all of the items properly indexed. Commented Feb 20, 2017 at 12:21
  • I think items indexed properly because when I searched within the site it displayed the results.
    – Tahir Ali
    Commented Feb 20, 2017 at 12:43
0

After contacting with Sitecore support I got the answer:

The field which should be used in order to achieve the required behavior is the "Associated Content (if empty search results will be narrowed to the current site)" field.

So, the actual article should be updated as follows:

Go to /sitecore/content/TENANT_GROUP/TENANT/SITE/Settings and in the Search Criteria section, in the DatasourceSearchScope field, click the sites that you want to include in the search. If you leave this field empty, only the current site will be searched.

should say

Go to /sitecore/content/TENANT_GROUP/TENANT/SITE/Settings and in the Search Criteria section, in the Associated Content field, click the sites that you want to include in the search. If you leave this field empty, only the current site will be searched. changes

The actual change is only the used field: DatasourceSearchScope -> Associated Content.

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.