zoukankan      html  css  js  c++  java
  • elasticsearch搜索引擎环境的搭建

    elasticsearch 搜索引擎

        解决了什么问题:在我们数据量很大时,我们使用模糊查询会使索引列的索引消失,这样使用elasticsearch来提高查询效率。

        存在什么问题:有时我们查询的词,elasticsearch服务器并没有给我们进行分词,即我们没有我们想要的数据,虽然数据的匹配度高达80%-90%,但还是会存在问题

    了解搜索引擎我们需要知道几个概念

    索引 用来标识文档的唯一性 
    映射 用来关联索引和文档之间的关系 
    文档  存储我们的字段和值
    分词器 elasticsearch进行对值得拆分
    分词 通过分词器查拆分后的值

      

    elasticsearch服务器的启动:

        1.下载资源包

    https://www.elastic.co/products/elasticsearch
    

        2.查看资源包目录

      3.打开bin/elasticsearch.bat   会在cmd窗口进行开启

      4.测试

        访问 http://127.0.0.1:9200

    测试成功

    ElasticSearch 插件安装 es head

       执行命令   %elasticsearch%/bin/plugin.bat install mobz/elasticsearch-head

    访问 http://localhost:9200/_plugin/head/

      

  • 相关阅读:
    fopen vs fsocketopen vs curl
    php parallel
    《PHP扩展开发及内核应用》
    在CentOS上搭建PHP服务器环境
    mysql 慢查询记录方法
    python的线上环境配置
    python, Django csrf token的问题
    python 安装mysqldb组件
    python 升级到python2.7
    Django的Hello World
  • 原文地址:https://www.cnblogs.com/fjkgrbk/p/elasticsearch.html
Copyright © 2011-2022 走看看