构建博客网站检索系统(Springboot + ElasticSearch+Tkmybatis+vue)

本项目使用SpringBoot、ElasticSearch、Tkmybatis及Vue搭建博客检索系统,通过Logstash同步MySQL数据,利用ik分词器提升搜索效率。演示显示,ES查询速度远超MySQL。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

项目简介:

基于框架 Springboot + ElasticSearch+Tkmybatis+vue 实现博客网站检索系统

效果展示:

es查询时间39

mysql查询时间247:

分词:如查询‘springboot描述’,分成springboot、描述(所有包含'springboot'或者'描述'的数据都被查询出来)

  

 

项目资源依赖:

ElasticSearch:elasticsearch-6.3.2 https://www.elastic.co/cn/downloads/elasticsearch

Logstash:  logstash-6.3.2(同步mysql数据库数据)https://www.elastic.co/cn/downloads/logstash

ik分词器:elasticsearch-analysis-ik-6.3.2(智能分词搜索)https://github.com/medcl/elasticsearch-analysis-ik

 项目结构:

maven依赖:

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.1.1</version>
        </dependency>
        <dependency>
            <groupId>tk.mybatis</groupId>
            <artifactId>mapper-spring-boot-starter</artifactId>
            <version>2.1.5</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
        </dependency>
    </dependencies>

项目源码:

https://github.com/chenping-1993/elasticsearch

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值