I managed to Search the contents of text files using custom search as described in the link below: https://docs.kentico.com/k8/custom-development/miscellaneous-custom-development-tasks/smart-search-api/creating-custom-smart-search-indexes
But it is not able to search in the filename. For example, if my search text is "Roman", the file "RomanRaj.txt" should show up in the results. Please help.
I'd suggest NOT creating a custom smart search index but looking at using attachments and searching those. Out of the box, Kentico will allow you to search attachments and their contents without writing any code.
Please, sign in to be able to submit a new answer.