Smart Search WebPart filter by siteID

Digital Team asked on April 12, 2016 18:14

Hi All,

I have merged 2 sites in a single kentico installation, but the "Smart Search dialog with results" webpart is returning results from both of my pages. The 2 pages have a very similar document structure.

How could a make a condition so that it only returns results for the current site?

I have tried to add makros in Search settings -> Search a Condition to check for site id with the document id, but it didn't work.

Correct Answer

Zach Perry answered on April 12, 2016 18:38

Verify the smart search index that is being used is only for one site. You may have to copy it and create another one for the other site.

This can be done in the Smart Search Application > Edit Index > Sites Tab

2 votesVote for this answer Unmark Correct answer

Recent Answers

Laura Frese answered on April 12, 2016 18:38

Did you try going to the Smart Search app in Kentico (where you generate your indexes) and just selecting the specific site there, the rebuilding the index?

More on Creating Smart Search Indexes

1 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on April 13, 2016 12:52 (last edited on April 13, 2016 12:53)

Team Digital,

You can do two things

  1. First exactly what Laura & Zachary suggested to see if your index is associated with only targeted site only.

  2. In your smart search index make sure you have only one index selcted like shown here and not two.

I could think of only these two reasons.

Try these and let us know. I have attached two screen shots links to help.

Cheers, Chetan

3 votesVote for this answer Mark as a Correct answer

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