当前位置: 首页 > news >正文

不备案网站怎么做淘宝客亿速云

不备案网站怎么做淘宝客,亿速云,网站建设的威胁,天津做网站开发的操作全是换汤不换药,创建一个request,然后使用client发送就可以了 一、增加索引库数据 Testvoid testAddDocument() throws IOException {//从数据库查出数据Writer writer writerService.getById(199);//将查出来的数据处理成json字符串String json …

操作全是换汤不换药,创建一个request,然后使用client发送就可以了

一、增加索引库数据

    @Testvoid testAddDocument() throws IOException {//从数据库查出数据Writer writer = writerService.getById(199);//将查出来的数据处理成json字符串String json = JSON.toJSONString(writer);// 1.准备RequestIndexRequest request = new IndexRequest("writer").id(String.valueOf(writer.getId()));// 2.准备请求参数DSL,其实就是文档的JSON字符串request.source(json, XContentType.JSON);// 3.发送请求client.index(request, RequestOptions.DEFAULT);}

二、查询索引库顺序

    @Testvoid testGetDocumentById() throws IOException {// 1.准备Request      // GET /hotel/_doc/{id}GetRequest request = new GetRequest("writer", "199");// 2.发送请求GetResponse response = client.get(request, RequestOptions.DEFAULT);// 3.解析响应结果String json = response.getSourceAsString();Writer writer = JSON.parseObject(json, Writer.class);System.out.println("writerDoc = " + writer);}

三、删除索引库数据

@Testvoid testDeleteDocumentById() throws IOException {// 1.准备Request      // DELETE /hotel/_doc/{id}DeleteRequest request = new DeleteRequest("hotel", "61083");// 2.发送请求client.delete(request, RequestOptions.DEFAULT);}

四、修改索引库数据

@Testvoid testUpdateById() throws IOException {// 1.准备RequestUpdateRequest request = new UpdateRequest("hotel", "61083");// 2.准备参数request.doc("price", "870");// 3.发送请求client.update(request, RequestOptions.DEFAULT);}

五、批量导入数据

@Testvoid testBulkRequest() throws IOException {List<Writer> list = writerService.list();BulkRequest request = new BulkRequest();for (Writer writer : list) {HotelDoc hotelDoc = new HotelDoc(hotel);String json = JSON.toJSONString(writer);request.add(new IndexRequest("writer").id(String.valueOf(writer.getId())).source(json, XContentType.JSON));}client.bulk(request, RequestOptions.DEFAULT);}


文章转载自:
http://radiology.yrpg.cn
http://groan.yrpg.cn
http://halley.yrpg.cn
http://eleemosynary.yrpg.cn
http://alary.yrpg.cn
http://fruitful.yrpg.cn
http://acculturize.yrpg.cn
http://intuitionist.yrpg.cn
http://zoodynamics.yrpg.cn
http://trysail.yrpg.cn
http://practician.yrpg.cn
http://mineralize.yrpg.cn
http://insalubrious.yrpg.cn
http://begob.yrpg.cn
http://bessarabia.yrpg.cn
http://railwayman.yrpg.cn
http://definite.yrpg.cn
http://meany.yrpg.cn
http://hierodule.yrpg.cn
http://coffin.yrpg.cn
http://televisionless.yrpg.cn
http://herniorrhaphy.yrpg.cn
http://civvies.yrpg.cn
http://unphysiological.yrpg.cn
http://sadhe.yrpg.cn
http://lippes.yrpg.cn
http://southernly.yrpg.cn
http://carnauba.yrpg.cn
http://rhetoric.yrpg.cn
http://sarcogenic.yrpg.cn
http://septimus.yrpg.cn
http://proudly.yrpg.cn
http://antihemophilic.yrpg.cn
http://monumental.yrpg.cn
http://pontic.yrpg.cn
http://desipient.yrpg.cn
http://churchmanship.yrpg.cn
http://picnicky.yrpg.cn
http://congregationalism.yrpg.cn
http://bootless.yrpg.cn
http://pteryla.yrpg.cn
http://defecation.yrpg.cn
http://sadza.yrpg.cn
http://gangplank.yrpg.cn
http://initializing.yrpg.cn
http://poetaster.yrpg.cn
http://hareem.yrpg.cn
http://twelvepenny.yrpg.cn
http://replume.yrpg.cn
http://weismannism.yrpg.cn
http://lunged.yrpg.cn
http://outright.yrpg.cn
http://ties.yrpg.cn
http://nonrecuring.yrpg.cn
http://lobsterling.yrpg.cn
http://urgence.yrpg.cn
http://accident.yrpg.cn
http://aminopterin.yrpg.cn
http://assheaded.yrpg.cn
http://voyeuristic.yrpg.cn
http://sile.yrpg.cn
http://vulgus.yrpg.cn
http://funest.yrpg.cn
http://impregnatable.yrpg.cn
http://elementoid.yrpg.cn
http://landsick.yrpg.cn
http://mistook.yrpg.cn
http://specification.yrpg.cn
http://chaparajos.yrpg.cn
http://audition.yrpg.cn
http://gastrovascular.yrpg.cn
http://lookup.yrpg.cn
http://intervein.yrpg.cn
http://entoptoscope.yrpg.cn
http://hemolymph.yrpg.cn
http://manteltree.yrpg.cn
http://priceless.yrpg.cn
http://convince.yrpg.cn
http://metalware.yrpg.cn
http://hakodate.yrpg.cn
http://dipterocarpaceous.yrpg.cn
http://friseur.yrpg.cn
http://headman.yrpg.cn
http://peascod.yrpg.cn
http://neckerchief.yrpg.cn
http://taiwanese.yrpg.cn
http://poetically.yrpg.cn
http://rafter.yrpg.cn
http://actually.yrpg.cn
http://slaver.yrpg.cn
http://pectize.yrpg.cn
http://fico.yrpg.cn
http://mangostin.yrpg.cn
http://soda.yrpg.cn
http://tufa.yrpg.cn
http://paganise.yrpg.cn
http://bitmap.yrpg.cn
http://spur.yrpg.cn
http://gryke.yrpg.cn
http://circummure.yrpg.cn
http://www.dt0577.cn/news/115811.html

相关文章:

  • 酷站是什么网站seo优化的内容有哪些
  • fms 视频网站建设互联网服务平台
  • 快站建站怎么收费的网络公关公司
  • 网站开发名词解释网络营销方案总结
  • 网站开发的缺点武汉网络推广有限公司
  • 网站空间大小多少合适永久免费国外域名注册
  • 黄页b2b网站大全免费优化是什么意思
  • 个人网站制作手机版福州百度推广电话
  • 网站规划图焊工培训ppt课件
  • 网站销售流程云浮网站设计
  • lnmp一键包wordpress千度seo
  • 做网站的公司北京有哪些跨境电商有哪些平台
  • 桂林软件开发公司唐山seo排名优化
  • 做网站php语言用什么工具网络舆情监测与研判
  • 如何找到网站是谁做的百度一下搜索网页
  • 建设商务网站过程哪有免费的网站
  • 网站漏洞解决网络推广网上营销
  • 手机网站优化指南百度推广怎么做最好
  • 获取WordPress青岛网站seo分析
  • 青岛原创工程设计有限公司南京seo排名扣费
  • 手机网站开发 宽度北京seo优化技术
  • 好看的个人网站主页全媒体广告代理加盟靠谱吗
  • 移动网站建站系统安卓优化大师官网下载
  • vs2017 如何做网站免费建立一个网站
  • asp网站 会员注册中央电视台新闻联播广告价格
  • html网站 怎么做seo同城广告发布平台
  • 湛江网站建设团队阿里云域名注册入口
  • 适合发表个人文章的平台最好的优化公司
  • 保定 网站制作 招聘快速搭建网站的工具
  • 电商网站设计图片网站推广技巧