Epinova / Epinova.Elasticsearch

A search-plugin for Episerver CMS and Commerce
MIT License
29 stars 20 forks source link

DidYouMean doesn't give any suggestions #132

Open haspe85 opened 3 years ago

haspe85 commented 3 years ago

I have a property that has the attribute DidYouMeanSource

[Display(
        Name = "Rubrik",
        GroupName = SystemTabNames.Content,
        Order = 1)]
    [DidYouMeanSource]

    public virtual string Heading { get; set; }

But the search result doesn't give any suggestions back.

if (result != null && result.DidYouMean != null)
            {
                searchResult.DidYouMean = result.DidYouMean.FirstOrDefault();
                return searchResult;
            }