Elastic{ON}北京分享了Elasticsearch7.0在Speed,Scale,Relevance等方面的很多新特性。

elasticsearch体验——在windows10上安装配置以及插件安装配置

elasticsearch-head 安装介绍

双击执行 elasticsearch.bat,该脚本文件执行 ElasticSearch 安装程序 
【注意,也可以在启动时设置一些参数,比如 
.\bin\elasticsearch.bat -Ecluster.name=my_cluster -Enode.name=node_1】 
打开浏览器,输入 http://localhost:9200 ,显式以下画面,说明ES安装成功。

启动后发觉,有段时间elasticsearch还是很吃内存的,大概2G。几分钟后貌似一切恢复正常。 
*还需要注意的是,使用过程中该bat运行的cmd窗口不能关闭。 
想在后台启动,则需要运行elasticsearch-service.bat将其安装为后台服务。安装为服务之后可以使用elasticsearch-service-mgr.exe进行界面管理。

启动 elasticsearch-head

在 elasticsearch-head 目录下,执行命令:

grunt server

Elasticsearch+Hbase实现海量数据秒回查询

>>> from elasticsearch import Elasticsearch
>>> es = Elasticsearch()
>>> es.indices.create(index='news', ignore=400)
{'acknowledged': True, 'shards_acknowledged': True, 'index': 'news'}
>>> data = {'title': '美国留给伊拉克的是个烂摊子吗', 'url': 'http://view.news.qq.com/zt2011/usa_iraq/index.htm'}
>>> result = es.create(index='news', doc_type='politics', id=1, body=data)
>>> print(result)
{'_index': 'news', '_type': 'politics', '_id': '1', '_version': 1, 'result': 'created', '_shards': {'total': 2, 'successful': 1, 'failed': 0}, '_seq_no': 0, '_primary_term': 1}

class Elasticsearch(object):"""Elasticsearch low-level client. Provides a straightforward mapping fromPython to ES REST endpoints.The instance has attributes ``cat``, ``cluster``, ``indices``, ``ingest``,``nodes``, ``snapshot`` and ``tasks`` that provide access to instances of:class:`~elasticsearch.client.CatClient`,:class:`~elasticsearch.client.ClusterClient`,:class:`~elasticsearch.client.IndicesClient`,:class:`~elasticsearch.client.IngestClient`,:class:`~elasticsearch.client.NodesClient`,:class:`~elasticsearch.client.SnapshotClient` and:class:`~elasticsearch.client.TasksClient` respectively. This is thepreferred (and only supported) way to get access to those classes and theirmethods.You can specify your own connection class which should be used by providingthe ``connection_class`` parameter::# create connection to localhost using the ThriftConnectiones = Elasticsearch(connection_class=ThriftConnection)If you want to turn on :ref:`sniffing` you have several options (describedin :class:`~elasticsearch.Transport`)::# create connection that will automatically inspect the cluster to get# the list of active nodes. Start with nodes running on 'esnode1' and# 'esnode2'es = Elasticsearch(['esnode1', 'esnode2'],# sniff before doing anythingsniff_on_start=True,# refresh nodes after a node fails to respondsniff_on_connection_fail=True,# and also every 60 secondssniffer_timeout=60)Different hosts can have different parameters, use a dictionary per node tospecify those::# connect to localhost directly and another node using SSL on port 443# and an url_prefix. Note that ``port`` needs to be an int.es = Elasticsearch([{'host': 'localhost'},{'host': 'othernode', 'port': 443, 'url_prefix': 'es', 'use_ssl': True},])If using SSL, there are several parameters that control how we deal withcertificates (see :class:`~elasticsearch.Urllib3HttpConnection` fordetailed description of the options)::es = Elasticsearch(['localhost:443', 'other_host:443'],# turn on SSLuse_ssl=True,# make sure we verify SSL certificatesverify_certs=True,# provide a path to CA certs on diskca_certs='/path/to/CA_certs')SSL client authentication is supported(see :class:`~elasticsearch.Urllib3HttpConnection` fordetailed description of the options)::es = Elasticsearch(['localhost:443', 'other_host:443'],# turn on SSLuse_ssl=True,# make sure we verify SSL certificatesverify_certs=True,# provide a path to CA certs on diskca_certs='/path/to/CA_certs',# PEM formatted SSL client certificateclient_cert='/path/to/clientcert.pem',# PEM formatted SSL client keyclient_key='/path/to/clientkey.pem')Alternatively you can use RFC-1738 formatted URLs, as long as they are notin conflict with other options::es = Elasticsearch(['http://user:secret@localhost:9200/','https://user:secret@other_host:443/production'],verify_certs=True)By default, `JSONSerializer<https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/serializer.py#L24>`_is used to encode all outgoing requests.However, you can implement your own custom serializer::from elasticsearch.serializer import JSONSerializerclass SetEncoder(JSONSerializer):def default(self, obj):if isinstance(obj, set):return list(obj)if isinstance(obj, Something):return 'CustomSomethingRepresentation'return JSONSerializer.default(self, obj)es = Elasticsearch(serializer=SetEncoder())"""def __init__(self, hosts=None, transport_class=Transport, **kwargs):""":arg hosts: list of nodes we should connect to. Node should be adictionary ({"host": "localhost", "port": 9200}), the entire dictionarywill be passed to the :class:`~elasticsearch.Connection` class askwargs, or a string in the format of ``host[:port]`` which will betranslated to a dictionary automatically.  If no value is given the:class:`~elasticsearch.Urllib3HttpConnection` class defaults will be used.:arg transport_class: :class:`~elasticsearch.Transport` subclass to use.:arg kwargs: any additional arguments will be passed on to the:class:`~elasticsearch.Transport` class and, subsequently, to the:class:`~elasticsearch.Connection` instances."""self.transport = transport_class(_normalize_hosts(hosts), **kwargs)# namespaced clients for compatibility with API namesself.indices = IndicesClient(self)self.ingest = IngestClient(self)self.cluster = ClusterClient(self)self.cat = CatClient(self)self.nodes = NodesClient(self)self.remote = RemoteClient(self)self.snapshot = SnapshotClient(self)self.tasks = TasksClient(self)self.xpack = XPackClient(self)

深入详解Elasticsearch

基于Elasticsearch 7.0 的从零开始构建知识图谱-win10测试相关推荐

  1. 自底向上构建知识图谱全过程

    http://www.sohu.com/a/245246344_160850 阿里妹导读:知识图谱的构建技术主要有自顶向下和自底向上两种.其中自顶向下构建是指借助百科类网站等结构化数据源,从高质量数据 ...

  2. 通俗讲解自底向上构建知识图谱全过程

    知识图谱的基础介绍,供学习参考. 转载自:https://mp.weixin.qq.com/s/7cBbtqvPQUVrLZUNDx8XDQ 知识图谱的构建技术主要有自顶向下和自底向上两种.其中自顶向 ...

  3. 技术动态 | 自底向上构建知识图谱全过程

    本文转载自公众号:阿里技术. "The world is not made of strings , but is made of things." --辛格博士,from Goo ...

  4. 详解自下而上构建知识图谱全过程(转载)

    导读:知识图谱的构建技术主要有自顶向下和自底向上两种.其中自顶向下构建是指借助百科类网站等结构化数据源,从高质量数据中提取本体和模式信息,加入到知识库里.而自底向上构建,则是借助一定的技术手段,从公开 ...

  5. 一文揭秘!自底向上构建知识图谱全过程

    阿里妹导读:知识图谱的构建技术主要有自顶向下和自底向上两种.其中自顶向下构建是指借助百科类网站等结构化数据源,从高质量数据中提取本体和模式信息,加入到知识库里.而自底向上构建,则是借助一定的技术手段, ...

  6. 中医与人工智能-基于Protégé构建知识图谱

    文章目录 中医与人工智能-基于Protégé构建知识图谱 本文内容 中医数据获取 中医数据处理 Protégé介绍与基本使用 基于Protégé构建知识图谱 通过protégé创建类的层次关系 通过p ...

  7. protege5.0构建知识图谱(基础篇)

    protege5.0的基本使用介绍 今天新学习了利用protege5.0构建知识图谱,和大家分享下学习经历. protege的安装以及可视化插件graphviz的安装参照了前辈的博客,这里表示一下感谢 ...

  8. 如何从零开始搭建知识图谱?

    导读: 从一开始的 Google 搜索,到现在的聊天机器人.大数据风控.证券投资.智能医疗.自适应教育.推荐系统,无一不跟知识图谱相关.它在技术领域的热度也在逐年上升. 本文以通俗易懂的方式来讲解知识 ...

  9. 【知识图谱】Neo4j的基本使用及思知1.4亿三元组数据构建知识图谱

    目录 0.前言 1.Neo4j的基本使用 1.1 下载和安装Neo4j 1.2 Neo4j配置 1.2.1 核心数据文件的位置 1.2.2 安全验证,默认是启用的 1.2.3 配置JAVA 堆内存的大 ...

  10. ChatGPT结合知识图谱构建医疗问答应用 (一) - 构建知识图谱

    一.ChatGPT结合知识图谱 在本专栏的前面文章中构建 ChatGPT 本地知识库问答应用,都是基于词向量检索 Embedding 嵌入的方式实现的,在传统的问答领域中,一般知识源采用知识图谱来进行 ...

最新文章

  1. 为什么我不再使用MVC框架
  2. ubuntu不显示壁纸,桌面右键无反应
  3. Python 中@符号解释
  4. (37)System Verilog线程并行执行(fork-join_any)
  5. 首批 5G 手机到位;来电显示暗藏黑色利益链;印度下架抖音国际版 | 极客头条...
  6. 页面动态加载android,Android APP启动页面动态加载全部权限
  7. 把路由器配置成DHCP服务器,并确保路由功能。
  8. aspf ftp_【解析】文件传输协议:FTP、TFTP、SFTP有什么区别?
  9. 谷歌电子市场开发流程(3)-关于加载界面的处理
  10. 谷歌浏览器弹出Chrome版本太旧解决方式
  11. win10 cmd切换目录
  12. common pool 数据库连接池泄露排查
  13. 怎么使用outlook发送邮件?outlook群发邮件怎么撤回?
  14. MATLAB 神经网络NAR时间序列做预测
  15. 人体神经系统分布图图片,神经系统分布图片高清
  16. 1Mbps高速光耦合器TLP112A工作原理及应用实例说明
  17. nagios 服务端与客户端监控安装与详细配置,各配置文件详解
  18. Python爬虫:scrapy框架请求参数meta、headers、cookies一探究竟
  19. HTML,JS和CSS实现减肥周期计算(附源码)
  20. 网易笔试题:混合颜料

热门文章

  1. php做页面编辑器,最牛在线编辑器ueditor在thinkphp框架中的使用方法
  2. python windows故障处理_python+windows automation windows有时会出现故障
  3. Android LoaderManager原理剖析
  4. 关于socket的简单的客户服务端编程
  5. 大厂的 404 页面都长啥样?看到最后一个,我笑了。。。
  6. 吊炸天!15岁成杀人犯,监狱里学编程,37岁获释后年薪70万
  7. 微店的Flutter混合开发组件化与工程化架构
  8. 程序员的每个阶段,都应该需要思考自己要什么?
  9. Java基础---Java---基础加强---内省的简单运用、注解的定义与反射调用、 自定义注解及其应用、泛型及泛型的高级应用、泛型集合的综合
  10. python--django基础篇(创建项目,模型类,迁移,测试数据库操作)