美文网首页
ElasticSearch--初探

ElasticSearch--初探

作者: 嗯哼嗯哼嗯嗯哼_7fe2 | 来源:发表于2018-08-07 19:12 被阅读0次

介绍

ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的企业级搜索引擎。

spring-boot如何集成elasticSearch

maven

<dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-data-elasticsearch</artifactId> 
    </dependency> 
    <dependency> 
      <groupId>io.searchbox</groupId> 
      <artifactId>jest</artifactId> 
    </dependency> 
    <dependency> 
      <groupId>net.java.dev.jna</groupId> 
      <artifactId>jna</artifactId> 
    </dependency> 

application.yml配置

spring: 
 elasticsearch: 
  jest: 
   uris: 
   - http://192.168.226.133:9200 
   read-timeout: 5000 

相关文章

网友评论

      本文标题:ElasticSearch--初探

      本文链接:https://www.haomeiwen.com/subject/ayoavftx.html