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