Searching from File title as well as file content in media library

Roman Raj Bajracharya asked on March 30, 2017 08:02

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.

Recent Answers


Brenden Kehren answered on March 30, 2017 14:21 (last edited on March 31, 2017 15:00)

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.

0 votesVote for this answer Mark as a Correct answer

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