🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/guapo-organizations/trie-service

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/guapo-organizations/trie-service

Source
Go
Version
v0.0.0-20190621022752-26953b4cd6f2
Version published
Created
Source

字典树服务

字典树,项目的字典树

服务架构采用自己封装的

开启grpc网关之后

参数解释

trie_type.id 需要在数据库配置

trie_type.trie_describe 需要在数据库配置

key 搜索的关键字

key_enroll 是否开启关键字词库录取

收集词库后并不会时时更新,需要重启服务

get 请求
http://localhost:8084/zldz/trie/keysearch?trie_type.id=1&trie_type.trie_describe=测试字典树&key=搜索的提示关键词&key_enroll=true

具体接入步骤

  • 联系管理员,申请一个trieType
  • 提供词库录入(非必须)
  • 调用接口 /zldz/trie/keysearch
  • 字典树会在每晚的11点更新词库

FAQs

Package last updated on 21 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts