搜索功能

Last updated: ... / Reads: 400 Edit

ElasticSearch

java客户端

https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/7.17/introduction.html

RediSearch

https://github.com/RediSearch/RediSearch

Redis 的查询和索引引擎,提供二级索引、全文搜索、向量相似度搜索和聚合。

命令

https://redis.io/commands/?group=search

文档

https://redis.io/docs/interact/search-and-query/

中文分词

https://github.com/lionsoul2014/friso

Friso 是使用 c 语言开发的一款开源的高性能中文分词器,使用流行的mmseg算法实现。完全基于模块化设计和实现,可以很方便的植入其他程序中, 例如:MySQL,PHP,并且提供了php5, php7, ocaml, lua的插件实现。源码无需修改就能在各种平台下编译使用,加载完 20 万的词条,内存占用稳定为 14.5M.


RediSearch的中文分词用的就是这个

https://redis.io/docs/interact/search-and-query/advanced-concepts/chinese/

java客户端

https://redis.io/docs/clients/java/


Jedis

https://github.com/redis/jedis/blob/master/docs/redisearch.md

https://github.com/redis/jedis/blob/emb-examples/src/test/java/io/redis/examples/SearchQuickstartExample.java

中文分词

jieba中文分词 java版

https://github.com/huaban/jieba-analysis

狮子的魂 jcseg

https://gitee.com/lionsoul/jcseg

redisearch默认使用的就是该作者的另外一个中文分词项目(c语言版本),这个项目是java版本。


Comments

Make a comment