Is it possible to use both stemming and boost matching in a query?
If I do it like this, I get boost matching, but no stemming:
// This way we get stemming as well, as opposed to the above var currentLangauge = Language.GetSupportedLanguage(ContentLanguage.PreferredCulture); ITypeSearch query = _epiFindClient.Search(currentLangauge) .For(q.Query ?? string.Empty) .BoostMatching(x => x.SearchTitle().Match(q.Query ?? string.Empty), 2) .BoostMatching(x => x.PageName.Match(q.Query ?? string.Empty), 2) .BoostMatching(x => x.SearchText().Match(q.Query ?? string.Empty), 1) .CurrentlyPublished();
If I use .InField, I get stemming, but no boost matching. Will I get boostmatching on the correct results if I mix both BoostMatching and InField?
Hello!
Is it possible to use both stemming and boost matching in a query?
If I do it like this, I get boost matching, but no stemming:
// This way we get stemming as well, as opposed to the above query = _epiFindClient.Search(currentLangauge)
var currentLangauge = Language.GetSupportedLanguage(ContentLanguage.PreferredCulture);
ITypeSearch
.For(q.Query ?? string.Empty)
.BoostMatching(x => x.SearchTitle().Match(q.Query ?? string.Empty), 2)
.BoostMatching(x => x.PageName.Match(q.Query ?? string.Empty), 2)
.BoostMatching(x => x.SearchText().Match(q.Query ?? string.Empty), 1)
.CurrentlyPublished();
If I use .InField, I get stemming, but no boost matching. Will I get boostmatching on the correct results if I mix both BoostMatching and InField?