private void button1_Click(object sender, EventArgs e) { OnlineUsersQueryRequest info = new OnlineUsersQueryRequest(); var data = ESHelper.Pack(ref info); this.SendMessage(data); }
private void button2_Click(object sender, EventArgs e) { P_CMD_Request req = new P_CMD_Request(); OnlineUsersQueryRequest info = new OnlineUsersQueryRequest(); var data = ESHelper.Pack(ref req, 1); BytesBuilder bb = new BytesBuilder(); bb.Append(data ).Append(ESHelper.Pack(ref info)); this.SendMessage(bb.ToBytes()); }
public string Search([FromBody] UserModel userModel) { //UserModel userModel = new UserModel(); //userModel.AddTime = DateTime.Now; //userModel.Deleted = false; //userModel.Dic = "超时的人,的哈哈哈测试测试哈哈哈哈"; //userModel.Id = 1; //userModel.State = 2; //userModel.UserName = "******"; ESHelper eSHelper = new ESHelper(); eSHelper.CreateIndex("ceshi"); eSHelper.AddIndex <UserModel>(userModel); return("获取成功"); }
public void CreateIndexDataTest() { ESHelper.CreateIndexData(); Assert.Fail(); }
public void Search1Test() { ESHelper.Search1(); }
public void SearchTest() { ESHelper.Search(); }
public void GetMappingTest() { ESHelper.GetMapping(); }