Giter Club home page Giter Club logo

poetry-web's Introduction

poetry-web

一个唐宋诗词简单展示的web项目

技术构成

  • 基于java,框架spring-boot + springMVC + Mybatis
  • 数据库为Mysql
  • web模板采用freeMarker,以及ajax加载
  • 页面由vue重构:https://github.com/snowtraces/poetry-vue ,原页面依旧保留

查询实现

1. mysql全文索引

模糊查询通过mysql建立fullText全文索引,未使用分词器,将最小分词数改为2:

[mysqld]
innodb_ft_min_token_size=2
ft_min_word_len=2

2. 分词问题

不但mysql没有有效的中文分词器,而且针对古文/古诗的分词器根本就没有。只进行了简单的分词,保留2个字的结果,放入keyword属性列。

3. 查询速度

查询采用了boolean模糊匹配,效率虽然比直接模糊查询快,但有时也会很慢。将查询结果前100条id放入表中,每次查询先查结果表。

数据源

展示

poetry-web's People

Contributors

snowtraces avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.