How can I add custom settings to custom smart search Index

Mani SJ asked on May 24, 2021 08:15

I created a custom smart search index based on link text. In the code there is a line

string path = Convert.ToString(sisi.GetValue("CustomData"));

where customData is the column name. I checked the search.index class name of the search module. It doesn't contain that column. I assume CustomData is a example text for column name. Where can I add custom column/data fields(like checkbox, text fields) so those appear in the Indexed tab of my custom index.

Correct Answer

Dmitry Bastron answered on May 24, 2021 14:30

Hi Mani,

Unfortunately, for completely custom search indexes there couldn't be any settings, except if you create it as custom settings in your custom module.

Could you explain your case in more details? Maybe instead of creating a fully custom index you could use a standard one with customization?

0 votesVote for this answer Unmark Correct answer

Recent Answers

Mani SJ answered on May 24, 2021 15:00

@Dmitry Bastron, ignore it. I am passing my settings as JSON using existing index data field.

0 votesVote for this answer Mark as a Correct answer

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