Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Meilisearch 簡介
Search
johnroyer
September 28, 2024
Technology
0
230
Meilisearch 簡介
johnroyer
September 28, 2024
Tweet
Share
More Decks by johnroyer
See All by johnroyer
單元測試經驗談
johnroyer
0
720
Introduction to CodeIgniter
johnroyer
2
160
MSN Users Clustering
johnroyer
0
4
Other Decks in Technology
See All in Technology
農業用ダム監視を目的とした衛星SAR 干渉解析の適用性について
osgeojp
0
140
[GDG DevFest Bangkok 2024] - The Future of Retail E-commerce with Gemini AI
punsiriboo
0
290
How is Cilium Tested?
yutarohayakawa
5
230
振る舞い駆動開発(BDD)における、テスト自動化の前に大切にしていること #stac2024 / BDD formulation
nihonbuson
2
280
Empowering Customer Decisions with Elasticsearch: From Search to Answer Generation
hinatades
PRO
0
250
GAS × Discord bot × Gemini で作ったさいきょーの情報収集ツール
ysknsid25
1
650
「今までで一番学びになった瞬間」発表 LT - Shinjuku.rb #96
kozy4324
0
140
Explain EXPLAIN
keiko713
9
2.3k
WED Company Deck for Engineer
wed
2
3.7k
My Generation 年配者がこの先生きのこるには (Developers CAREER Boost 2024 Edition)/My Generation How elder engineers can survive
kwappa
3
110
ゆるSRE勉強会 #8 組織的にSREが始まる中で意識したこと
abnoumaru
2
990
12/4(水)のBedrockアプデ速報(re:Invent 2024 Daily re:Cap #3 with AWS Heroes)
minorun365
PRO
2
380
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
27
2.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
We Have a Design System, Now What?
morganepeng
51
7.3k
Making Projects Easy
brettharned
116
5.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
240
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Automating Front-end Workflow
addyosmani
1366
200k
Building Applications with DynamoDB
mza
91
6.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
24k
Transcript
1 SELECT url FROM news WHERE content like "% 逢甲夜市
%"
2 ALTER TABLE `db`.`table_name` ADD FULLTEXT `idx_name` (`content`); SELECT url
FROM news WHERE MATCH(content) AGAINST(" 逢甲夜市 ")
3 全文檢索
4 Fang Chia night market ^ ^ ^
5 Fang Chia night market Fang Chia Fang Chia night
market .....
6 逢甲夜市 逢 甲 夜 逢甲 夜市 逢夜 逢市 (N-gram)
7 中研院中文斷詞 (CKIP) https://ckip.iis.sinica.edu.tw/service/ckiptagger/
8 台灣即日起進入「排碳有價」時代,全台計有 281 家 企業、 500 間廠家須繳碳費,佔全國溫室氣體排放量 約 54% ,以鋼鐵、石化、半導體等產業為大宗。
範例
9 基努李維被問及對於真除代理執行長廖達琪的可能結 果,蔡明忠表示,不做多想,但期盼還是盧業中擔任 執行長 範例
10 Meilisearch
11 Meilisearch • full-text indexing engine powered by Rust •
支援多國語言 • Document based • RESTful API
12 Meilisearch
13 Meilisearch curl -X GET \ http://127.0.0.1:7700/indexes
14 Meilisearch curl -X POST \ 'http://localhost:7700/indexes' \ -H 'Content-Type:
application/json' \ --data-binary '{ "uid": "movies", "primaryKey": "id" }'
15 Meilisearch [ { "id": 1, "name": " 日落 ",
"tag": ["Linux", "COSCUP"], "programming-language": "PHP" }, { "id": 2, "name": "Shawn", "tag": ["Linux", "KaLUG", "Rust"] } ]
16 Meilisearch curl -X GET \ http://127.0.0.1:7700/index/people/stats { "numberOfDocuments": 2,
"isIndexing": false, "fieldDistribution": { "id": 2, "name": 2, "programming-language": 1, "tag": 2 } }
17 Meilisearch curl -X POST 'http://localhost:7700/indexes/people/sear ch' \ -H 'Content-Type:
application/json' \ --data-binary '{"q": "rust"}'
18 實際案例
19 Meilisearch https://zeroplex.tw
20 實際案例 新聞搜尋工具: • 文字約 3 GB • 數量約 140
萬筆 • 索引檔大小約 30 GB