GetNotes Tools
RediSearch/RediSearch
Tool นี้คืออะไร
RediSearch เป็นโมดูล Redis ที่เพิ่มความสามารถในการค้นหาแบบเต็มรูปแบบ การทำดัชนีรอง และการสืบค้นข้อมูลขั้นสูงให้กับ Redis เหมาะสำหรับนักพัฒนาที่ต้องการเพิ่มประสิทธิภาพการค้นหาข้อมูลใน Redis ด้วยคุณสมบัติต่างๆ เช่น การค้นหาข้อความเต็ม, การค้นหาแบบคลุมเครือ, การกรองตัวเลข และการค้นหาเวกเตอร์
ข้อมูลโปรเจกต์
ดาว
6.2K
Forks
586
License
ไม่ระบุ
อัปเดต GitHub ล่าสุด
16 ก.ค. 2569
เพิ่มใน GetNotes
17 ก.ค. 2569
Repository
RediSearch/RediSearch
แปลและเรียบเรียงโดย AI
เนื้อหาฉบับภาษาไทย
ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง
RediSearch
ตั้งแต่ Redis 8 เป็นต้นไป Redis Query Engine (RediSearch) ได้รวมเข้าเป็นส่วนหนึ่งของ Redis แล้ว คุณไม่จำเป็นต้องติดตั้งโมดูลนี้แยกต่างหาก
เราไม่เผยแพร่ RediSearch เวอร์ชันสแตนด์อโลนอีกต่อไป
ดู https://github.com/redis/redis สำหรับข้อมูลเพิ่มเติม
ไม่รองรับระบบ 32 บิต
ภาพรวม
RediSearch เป็น โมดูล Redis ที่ให้ความสามารถในการสืบค้น, การทำดัชนีรอง และการค้นหาข้อความเต็มสำหรับ Redis ในการใช้งาน RediSearch คุณต้องประกาศดัชนีบนข้อมูล Redis ของคุณก่อน จากนั้นคุณสามารถใช้ภาษาคิวรีของ RediSearch เพื่อสืบค้นข้อมูลนั้นได้
RediSearch ใช้ดัชนีแบบผกผันที่ถูกบีบอัดเพื่อการทำดัชนีที่รวดเร็วโดยใช้หน่วยความจำน้อย
ดัชนีของ RediSearch ช่วยเพิ่มประสิทธิภาพให้กับ Redis โดยให้การจับคู่วลีที่แน่นอน, การค้นหาแบบคลุมเครือ และการกรองตัวเลข รวมถึงคุณสมบัติอื่นๆ อีกมากมาย
เริ่มต้นใช้งาน
หากคุณเพิ่งเริ่มต้นใช้งาน RediSearch โปรดดู บทช่วยสอน RediSearch อย่างเป็นทางการ นอกจากนี้ ลองดู วิดีโออธิบาย RediSearch ของเรา
เอกสารประกอบ
เอกสารประกอบ RediSearch ให้ภาพรวมที่สมบูรณ์ของ RediSearch ส่วนที่เป็นประโยชน์ได้แก่:
- การเริ่มต้นใช้งาน RediSearch อย่างรวดเร็ว
- ข้อมูลอ้างอิงคำสั่ง RediSearch
- ข้อมูลอ้างอิงเกี่ยวกับคุณสมบัติต่างๆ เช่น การรวมกลุ่ม (aggregations), การเน้นข้อความ (highlights), การตัดคำ (stemming) และ การแก้ไขการสะกดคำ (spelling correction)
- การค้นหาเวกเตอร์ (Vector search)
มีคำถามใช่ไหม?
มีคำถามใช่ไหม? เข้าร่วมกับเราในช่อง #redisearch บนเซิร์ฟเวอร์ Redis Discord
คุณสมบัติของ RediSearch
- การทำดัชนีข้อความเต็มของหลายฟิลด์ใน Redis hashes
- การทำดัชนีแบบเพิ่มขึ้นโดยไม่สูญเสียประสิทธิภาพ
- การจัดอันดับเอกสาร (ใช้ BM25 เป็นค่าเริ่มต้น โดยมีน้ำหนักที่ผู้ใช้กำหนดได้) วิธีการให้คะแนนทั้งหมดที่มีอยู่ได้อธิบายไว้ ที่นี่
- การถ่วงน้ำหนักฟิลด์
- การสืบค้นแบบบูลีนที่ซับซ้อนด้วยตัวดำเนินการ AND, OR และ NOT
- การจับคู่คำนำหน้า, การจับคู่แบบคลุมเครือ และการสืบค้นวลีที่แน่นอน
- รองรับ การจับคู่เสียงแบบ double-metaphone
- คำแนะนำการเติมข้อความอัตโนมัติ (พร้อมคำแนะนำคำนำหน้าแบบคลุมเครือ)
- การขยายคิวรีโดยใช้การตัดคำใน หลายภาษา (ใช้ Snowball)
- รองรับการแยกคำและการสืบค้นภาษาจีน (ใช้ Friso)
- ตัวกรองและช่วงตัวเลข
- การค้นหาเชิงพื้นที่โดยใช้ การทำดัชนีเชิงพื้นที่ของ Redis
- เอนจินการรวมกลุ่มที่มีประสิทธิภาพ
- รองรับข้อความที่เข้ารหัส utf-8 ทั้งหมด
- ดึงเอกสารฉบับเต็ม, ฟิลด์ที่เลือก หรือเฉพาะ ID เอกสาร
- การจัดเรียงผลลัพธ์ (เช่น ตามวันที่สร้าง)
- การทำดัชนีรูปร่างทางภูมิศาสตร์
- การค้นหาความคล้ายคลึงของเวกเตอร์ - KNN, filtered KNN และ range query
การรองรับคลัสเตอร์
RediSearch มีเวอร์ชันคลัสเตอร์แบบกระจายที่สามารถปรับขนาดได้ถึงพันล้านเอกสารในเซิร์ฟเวอร์หลายร้อยเครื่อง ในขณะนี้ RediSearch แบบกระจายมีให้ใช้งานเป็นส่วนหนึ่งของ Redis Cloud และ Redis Enterprise Software
ดู RediSearch บน Redis Enterprise สำหรับข้อมูลเพิ่มเติม
ใบอนุญาต
ตั้งแต่ Redis 8 เป็นต้นไป RediSearch ได้รับอนุญาตภายใต้ตัวเลือกของคุณ: (i) Redis Source Available License 2.0 (RSALv2); (ii) Server Side Public License v1 (SSPLv1); หรือ (iii) GNU Affero General Public License version 3 (AGPLv3) โปรดตรวจสอบโฟลเดอร์ license สำหรับข้อกำหนดและเงื่อนไขใบอนุญาตฉบับเต็ม เวอร์ชันก่อนหน้ายังคงอยู่ภายใต้ (i) และ (ii)
การมีส่วนร่วมในการพัฒนาโค้ด
ยินดีรับการมีส่วนร่วม — ไม่ว่าจะเป็นการแก้ไขข้อผิดพลาด, การปรับปรุง และข้อเสนอคุณสมบัติใหม่ๆ จากทั้งผู้มีส่วนร่วมที่เป็นมนุษย์และผู้ช่วย AI
- การเริ่มต้นใช้งาน, การตั้งค่า, มาตรฐานการเขียนโค้ด และขั้นตอนการทำงานของ PR: ดู `CONTRIBUTING.md`
- การเสนอคุณสมบัติหรือการเปลี่ยนแปลงขนาดใหญ่อื่นๆ (คำสั่งใหม่, ประเภทดัชนีใหม่, การเปลี่ยนแปลงพฤติกรรมหรือการคงอยู่ของข้อมูล): RediSearch ใช้ขั้นตอนการทำงานที่ขับเคลื่อนด้วยข้อกำหนดที่เบาและไม่ขึ้นกับเฟรมเวิร์ก เพื่อให้การออกแบบได้รับการตรวจสอบก่อนที่จะเขียนโค้ด — ดู `docs/CONTRIBUTING-specs.md`
- เอเจนต์การเขียนโค้ด: ข้อตกลงของ repo และขั้นตอนการทำงานของการมีส่วนร่วมสรุปไว้สำหรับเครื่องมืออัตโนมัติใน `AGENTS.md`
- ข้อบกพร่องด้านความปลอดภัยและช่องโหว่: ดู `SECURITY.md`
การมีส่วนร่วมในโค้ดของโมดูล Redis นี้ในรูปแบบใดๆ รวมถึงการส่ง pull request ผ่าน GitHub, ส่วนของโค้ด หรือแพตช์ผ่านอีเมลส่วนตัวหรือกลุ่มสนทนาสาธารณะ ถือว่าคุณตกลงที่จะเผยแพร่โค้ดของคุณภายใต้ข้อกำหนดของ Redis Software Grant และ Contributor License Agreement โปรดดูไฟล์ CONTRIBUTING.md ในการแจกจ่ายซอร์สโค้ดนี้สำหรับข้อมูลเพิ่มเติม
เอกสารโปรเจกต์
อ่านเอกสารต้นฉบับ
README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ
RediSearch
Starting with Redis 8, Redis Query Engine (RediSearch) is integral to Redis. You don't need to install this module separately.
We no longer release standalone versions of RediSearch.
See https://github.com/redis/redis for more information.
32 bit systems are not supported.
Overview
RediSearch is a Redis module that provides querying, secondary indexing, and full-text search for Redis. To use RediSearch, you first declare indexes on your Redis data. You can then use the RediSearch query language to query that data.
RediSearch uses compressed, inverted indexes for fast indexing with a low memory footprint.
RediSearch indexes enhance Redis by providing exact-phrase matching, fuzzy search, and numeric filtering, among many other features.
Getting started
If you're just getting started with RediSearch, check out the official RediSearch tutorial. Also, consider viewing our RediSearch video explainer.
Documentation
The RediSearch documentation provides a complete overview of RediSearch. Helpful sections include:
- The RediSearch quick start
- The RediSearch command reference
- References on features such as aggregations, highlights, stemming, and spelling correction.
- [Vector search] (https://redis.io/docs/latest/develop/interact/search-and-query/query/vector-search/)
Questions?
Got questions? Join us in #redisearch on the Redis Discord server.
RediSearch features
- Full-Text indexing of multiple fields in Redis hashes
- Incremental indexing without performance loss
- Document ranking (using BM25 as default, with optional user-provided weights). All available scoring methods described here
- Field weighting
- Complex boolean queries with AND, OR, and NOT operators
- Prefix matching, fuzzy matching, and exact-phrase queries
- Support for double-metaphone phonetic matching
- Auto-complete suggestions (with fuzzy prefix suggestions)
- Stemming-based query expansion in many languages (using Snowball)
- Support for Chinese-language tokenization and querying (using Friso)
- Numeric filters and ranges
- Geospatial searches using Redis geospatial indexing
- A powerful aggregations engine
- Supports for all utf-8 encoded text
- Retrieve full documents, selected fields, or only the document IDs
- Sorting results (for example, by creation date)
- Geoshape indexing
- Vector similarity search - KNN, filtered KNN and range query
Cluster support
RediSearch has a distributed cluster version that scales to billions of documents across hundreds of servers. At the moment, distributed RediSearch is available as part of Redis Cloud and Redis Enterprise Software.
See RediSearch on Redis Enterprise for more information.
License
Starting with Redis 8, RediSearch is licensed under your choice of: (i) Redis Source Available License 2.0 (RSALv2); (ii) the Server Side Public License v1 (SSPLv1); or (iii) the GNU Affero General Public License version 3 (AGPLv3). Please review the license folder for the full license terms and conditions. Prior versions remain subject to (i) and (ii).
Code contributions
Contributions are welcome — bug fixes, improvements, and new feature proposals alike, from both human and AI-assisted contributors.
- Getting started, setup, coding standards, and the PR workflow: see
CONTRIBUTING.md. - Proposing a feature or other large change (new commands, new index types, behavior or persistence changes): RediSearch uses a lightweight, framework-neutral spec-driven workflow so the design is reviewed before code is written — see
docs/CONTRIBUTING-specs.md. - Coding agents: repo conventions and the contribution workflow are summarized for automated tooling in
AGENTS.md. - Security bugs and vulnerabilities: see
SECURITY.md.
By contributing code to this Redis module in any form, including sending a pull request via GitHub, a code fragment or patch via private email or public discussion groups, you agree to release your code under the terms of the Redis Software Grant and Contributor License Agreement. Please see the CONTRIBUTING.md file in this source distribution for more information.
