示例#1
0
 public static void Search(SearchActionArgs args)
 {
     var settings = BaseAction.Settings();
     var client = new ElasticClient(settings, new InMemoryConnection(settings));
     for (var i = 0; i < 10000; i++)
     {
         var term = i.ToString();
         var result = client.Search<ElasticSearchProject>(s => s
                 .Query(q=>
                     q.Term(p=>p.Name, term) || q.Term(p=>p.Followers.First().FirstName, term)
                 )
             );
     }
 }
示例#2
0
        public static void Search(SearchActionArgs args)
        {
            var settings = BaseAction.Settings();
            var client   = new ElasticClient(settings, new InMemoryConnection(settings));

            for (var i = 0; i < 10000; i++)
            {
                var term   = i.ToString();
                var result = client.Search <ElasticSearchProject>(s => s
                                                                  .Query(q =>
                                                                         q.Term(p => p.Name, term) || q.Term(p => p.Followers.First().FirstName, term)
                                                                         )
                                                                  );
            }
        }
示例#3
0
文件: Program.cs 项目: Rustemt/NEST
 public static void Search(SearchActionArgs args)
 {
     SearchAction.Search(args);
 }
示例#4
0
 public static void Search(SearchActionArgs args)
 {
     SearchAction.Search(args);
 }