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/

      

  • 相关阅读:
    IIS服务器SSL证书安装 (pfx文件不能直接运行时)
    .NET Core创建Worker Services
    1.初步了解IOC容器
    1.Configuration
    2.第一个Codefirst实例
    安装Mysql
    2.我的第一个小程序(获取用户信息--包括敏感信息)
    1.什么是微信小程序
    Repeater的使用
    1.MVC的初步了解
  • 原文地址:https://www.cnblogs.com/fjkgrbk/p/elasticsearch.html
Copyright © 2011-2022 走看看