First of all I would recommend reading this article where is described how to sort results by relevance in title: https://www.bizstream.com/blog/march-2017/boost-kentico-smart-search-results-relevance-score
Then using the parameters specify all the conditions:
SearchParameters parameters = new SearchParameters()
{
SearchFor = "(title:" + QueryHelper.GetString("searchtext", "") + ")",
SearchSort = "ArticleCreated desc",
Path = "/%",
CurrentCulture = "EN-US",
DefaultCulture = CultureHelper.EnglishCulture.IetfLanguageTag,
CombineWithDefaultCulture = false,
CheckPermissions = false,
SearchInAttachments = false,
User = (UserInfo)MembershipContext.AuthenticatedUser,
SearchIndexes = index.IndexName,
StartingPosition = 0,
DisplayResults = 100,
NumberOfProcessedResults = 100,
NumberOfResults = 0,
AttachmentWhere = String.Empty,
AttachmentOrderBy = String.Empty,
ClassNames = ""
/* The 'SearchParameters.ClassNames' property only limits the attachment search,
not the results of the basic SearchHelper.Search method. You can limit class names (page types)
by adding a Lucene search condition to the text of the 'SearchFor' query. */
};
// Performs the search and saves the results into a DataSet
System.Data.DataSet results = SearchHelper.Search(parameters);
The code is given as examples. According to the information in article, you need to adjust your conditions.