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