This is the first time working on SXA Search. We have an SXA site with search in working condition. We cloned a new site from the existing one and using master database for now but the search page is not working. Our indexing strategy currently is manual. Do we need to explicitly trigger any indexes for master also (sitecore_sxa_master_index)?
1 Answer
If you have your indexing strategy set to manual
, then any change you make, whether it is to an item, adding/removing an item, creating a new site, cloning a new site, anything will need an index rebuild after it is made for that change to be reflected in the index.
The question should be, why is your master index update strategy set to manual
? Ideally, this should be set to syncMaster
so that master changes are immediately reflected in the master indexes and the web index should be one of the publish related strategies. Otherwise, you will end up rebuilding the indexes manually very often.
-
Richard, master index is configured to syncMaster only whereas strategy for web is manual. But, after cloning, search in new site is not working. Any configuration we need to take care of after cloning? Commented Mar 1, 2019 at 17:17
-
well yeah - if your web is set to manual, you need to rebuild the indexes. You should set the web to
onPublishEndAsync
– Richard Seal ♦Commented Mar 1, 2019 at 18:44 -
But, the cloned site is pointing to master only still. Commented Mar 1, 2019 at 18:54