public DemoSearchHelper(DemoSearchModel searchModel, IEnumerable <DemoRootPage> rootPages) { RootPages = rootPages; SearchAgregator = new DemoSearchAgregator(searchModel); }
internal static string[][] GetSynonyms(DemoSearchModel search) { return(search.Synonyms.Groups.Select(s => s.Split(separators, StringSplitOptions.RemoveEmptyEntries)).ToArray()); }
static string[] GetWordsExclusions(DemoSearchModel search) { return(search.Exclusions.Words.Split(separators, StringSplitOptions.RemoveEmptyEntries)); }
internal static string[] GetPostfixesExclusions(DemoSearchModel search) { return(search.Exclusions.Postfixes.Split(separators, StringSplitOptions.RemoveEmptyEntries)); }
internal DemoSearchAgregator(DemoSearchModel searchModel) { SearchModel = searchModel; }