Kentico Smart Search and custom type

Alexander Pinin asked on May 22, 2017 06:45

I want to use Smart search via api. I have read the documentation here https://docs.kentico.com/api10/configuration/smart-search. I tried to create different types of indexes using the documentation syntax. I checked out the CMS_SearchIndex, and indexes appeared in that table. After that I tried to get a search result, but all the time it was null. What the important thing that I missed? I use a custom type to keep data. Is it a problem? In my custom type, I mark fields as searchable.

Correct Answer

Alexander Pinin answered on May 22, 2017 07:35

It looks like I've found the answer. I did two things and I'm not sure which of things solved the problem. I added permissions for App_Data folder and created a custom index.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Prashant Verma answered on May 22, 2017 13:07

Hi Alexander,

The right way is creating custom index or any other type of index from which you want to fetch the data from site objects. So in your case

1.Create new custom type index.

2.Then go to Indexed Content tab select your custom provider for smart search and choose a class in which smart search API logic written to fetch/create index objects.

3.Then you must need to rebuild your custom index.

Tips: If you including any custom table data in smart search then you must need to set checkbox checked for the specific columns as searchable and content then don't forget to rebuild your index.

That's all.

Thanks

Let me know if I can help you.

0 votesVote for this answer Mark as a Correct answer

Alexander Pinin answered on May 23, 2017 08:44

Prashant, hello! Thanks a lot for your answer. Unfortunately I have to solve an another problem right now but I will check your advice later. Thank you!

0 votesVote for this answer Mark as a Correct answer

adv ydv answered on November 7, 2017 11:46

windows 10 screen resolution Computer monitor can support thousands of displays The screen resolution of the display is one of the main features in Windows platform which determines how much content and information is displayed on the screen

0 votesVote for this answer Mark as a Correct answer

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