Smart search index not syncing with core project

Mani SJ asked on November 5, 2021 06:20

I created a custom index in Kentico Xperience and rebuild was successful. Under search preview of index I can see results for my search text. Under CMS project AppData/CMSModules/SmartSearch/CustomIndexNameFolder/ I have some files.Similarly Under core project AppData/CMSModules/SmartSearch/CustomIndexNameFolder/ I have some files. These files don't match in both project. In luke tool, I referred my CMS path and got results as in index search preview tab. When I referred core path I don't get any results for same search text. Because of this no results in my search controller. How can I fix this?

Recent Answers


Juraj Ondrus answered on November 5, 2021 06:40

The files do not have to be 100% identical. I would start with checking the license keys and web farm sync and make sure you have the right keys in place and that the web farm servers are healthy and sync works OK, no unprocessed tasks in the queue, no errors in the Event log and that the sync of smart search indexes is enabled in Settings -> Versioning and Synchronization -> Web farms

0 votesVote for this answer Mark as a Correct answer

Mani SJ answered on November 5, 2021 07:33 (last edited on November 5, 2021 07:34)

@Juraj Ondrus I enabled Web farm to be automatic then enabled all in Allow synchronization for under Settings -> Versioning and Synchronization -> Web farms. Two web farm servers are healthy. No error in event log, no unprocessed tasks in the queue. Right now my search result not working in search preview tab of index itself. What's with license keys and right keys in place?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 5, 2021 13:03

For the license keys - make sure the domain names used for the admin app and Core app are matching the domains for the license keys. Then, check the number of allowed servers for each key. If it says "1". Then you are allowed to have one admin app and one Core app. I have seen issues when developers were connecting to the same DB - which generated more apps than allowed and then the web farm sync will not work.

Then, next thing to check is the Smart search app -> Tasks. Are there any unprocessed tasks? Also, are you using the defaults or the scheduler to index data? In this case it may take some time until the search tasks are processed by the scheduler.

What is the environment setup? What storage are you using? Do the apps have appropriate disk write permissions?

0 votesVote for this answer Mark as a Correct answer

Mani SJ answered on November 8, 2021 08:28

@Juraj Ondrus I changed license and I am able to get results in my controller but why the SearchResultItem.Data is null

0 votesVote for this answer Mark as a Correct answer

Mani SJ answered on November 8, 2021 09:51

@Juraj Ondrus. Ignore above.My custom index generates a lucene document. So I am able to get all details from a property(lucene document) of search result item

0 votesVote for this answer Mark as a Correct answer

Simple [A] answered on February 3, 2022 17:23

Hello friends,

I'm facing the same issue. Basically, once the re-index is done the indexed files are created on the WebForms admin site. However, they are not synced to the Core Project on Azure. Both sites are hosted in Azure Web Apps.

I checked all parameters mentioned previously on the post such as:

  • Licenses, they are correctly added and under WebFarms it says: Unlimited
  • Smart Search sync task is enabled under Settings > WebFarm > Manual
  • We are trying to use local search (not Azure search), the Smart search tasks are empty.
  • I tried to execute the Smart search index sync scheduled task and it does not sync it.
  • Event log does not show any info, warn or error about the search sync.

Any hint is always welcome, please

Thanks in advance, Victor

1 votesVote for this answer Mark as a Correct answer

Simple [A] answered on February 3, 2022 18:02 (last edited on February 3, 2022 18:02)

Hello friends,

I'm facing the same issue. Basically, once the re-index is done the indexed files are created on the WebForms admin site. However, they are not synced to the Core Project on Azure. Both sites are hosted in Azure Web Apps.

I checked all parameters mentioned previously on the post such as:

  • Licenses, they are correctly added and under WebFarms it says: Unlimited
  • Smart Search sync task is enabled under Settings > WebFarm > Manual
  • We are trying to use local search (not Azure search), the Smart search tasks are empty.
  • I tried to execute the Smart search index sync scheduled task and it does not sync it.
  • Event log does not show any info, warn or error about the search sync.

Note: I'm on Xperience CMS 13.0.56 (both admin and live) - .NET 5

Any hint is always welcome, please

Thanks in advance, Victor

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.