It should work for both MVC or portal, doesn't matter.
The search API are the same. Under the hood it is the Lucene fuzzy search anyway.
You have to experiment for example:
// Gets the search index
SearchIndexInfo index = SearchIndexInfoProvider.GetSearchIndexInfo("NewIndex");
if (index != null)
{
// Prepares the search parameters
SearchParameters parameters = new SearchParameters()
{
SearchFor = "home~",
...
};
// Performs the search and saves the results into a DataSet
System.Data.DataSet results = SearchHelper.Search(parameters);
if (parameters.NumberOfResults > 0)
{
// The search found at least one matching result, and you can handle the results
}
}
you can use SearchSyntaxHelper.TransformToFuzzySearch to prepare your search query, but it is the Lucene syntax anyway.